DBoW2::Result Class Reference

Single result of a query. More...

#include <QueryResults.h>

List of all members.

Public Member Functions

 Result ()
 debug
 Result (EntryId _id, double _score)
bool operator< (const Result &r) const
bool operator> (const Result &r) const
bool operator== (EntryId id) const
bool operator< (double s) const
bool operator> (double s) const

Static Public Member Functions

static bool gt (const Result &a, const Result &b)
static bool ge (const Result &a, const Result &b)
static bool geq (const Result &a, const Result &b)
static bool geqv (const Result &a, double s)
static bool ltId (const Result &a, const Result &b)

Public Attributes

EntryId Id
 Entry id.
double Score
 Score obtained.
int nWords
 debug
double bhatScore
double chiScore
double sumCommonVi
 debug
double sumCommonWi
double expectedChiScore

Friends

std::ostream & operator<< (std::ostream &os, const Result &ret)

Detailed Description

Single result of a query.


Constructor & Destructor Documentation

DBoW2::Result::Result (  )  [inline]

debug

Empty constructors

DBoW2::Result::Result ( EntryId  _id,
double  _score 
) [inline]

Creates a result with the given data

Parameters:
_id entry id
_score score

Member Function Documentation

static bool DBoW2::Result::ge ( const Result a,
const Result b 
) [inline, static]

Compares the scores of two results

Returns:
true iff a.Score > b.Score
static bool DBoW2::Result::geq ( const Result a,
const Result b 
) [inline, static]

Returns true iff a.Score >= b.Score

Parameters:
a 
b 
Returns:
true iff a.Score >= b.Score
static bool DBoW2::Result::geqv ( const Result a,
double  s 
) [inline, static]

Returns true iff a.Score >= s

Parameters:
a 
s 
Returns:
true iff a.Score >= s
static bool DBoW2::Result::gt ( const Result a,
const Result b 
) [inline, static]

Compares the score of two results

Parameters:
a 
b 
Returns:
true iff a.Score > b.Score
static bool DBoW2::Result::ltId ( const Result a,
const Result b 
) [inline, static]

Returns true iff a.Id < b.Id

Parameters:
a 
b 
Returns:
true iff a.Id < b.Id
bool DBoW2::Result::operator< ( double  s  )  const [inline]

Compares the score of this entry with a given one

Parameters:
s score to compare with
Returns:
true iff this score < s
bool DBoW2::Result::operator< ( const Result r  )  const [inline]

Compares the scores of two results

Returns:
true iff this.score < r.score
bool DBoW2::Result::operator== ( EntryId  id  )  const [inline]

Compares the entry id of the result

Returns:
true iff this.id == id
bool DBoW2::Result::operator> ( double  s  )  const [inline]

Compares the score of this entry with a given one

Parameters:
s score to compare with
Returns:
true iff this score > s
bool DBoW2::Result::operator> ( const Result r  )  const [inline]

Compares the scores of two results

Returns:
true iff this.score > r.score

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Result ret 
) [friend]

Prints a string version of the result

Parameters:
os ostream
ret Result to print

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Generated on Thu Feb 7 19:47:43 2013 by  doxygen 1.6.3