Base class of scoring functions. More...
#include <ScoringObject.h>
Public Member Functions | |
virtual double | score (const BowVector &v, const BowVector &w) const =0 |
virtual bool | mustNormalize (LNorm &norm) const =0 |
Static Public Attributes | |
static const double | LOG_EPS = log(DBL_EPSILON) |
Log of epsilon. |
Base class of scoring functions.
virtual bool DBoW2::GeneralScoring::mustNormalize | ( | LNorm & | norm | ) | const [pure virtual] |
Returns whether a vector must be normalized before scoring according to the scoring scheme
norm | norm to use |
virtual double DBoW2::GeneralScoring::score | ( | const BowVector & | v, | |
const BowVector & | w | |||
) | const [pure virtual] |
Computes the score between two vectors. Vectors must be sorted and normalized if necessary
v | (in/out) | |
w | (in/out) |