GSLAM  3.0.0
Public Member Functions | Static Public Member Functions | List of all members
GeneralScoring Class Referenceabstract

Base class of scoring functions. More...

Public Member Functions

virtual double score (const BowVector &v, const BowVector &w) const =0
 Computes the score between two vectors. More...
 
virtual bool mustNormalize (Vocabulary::LNorm &norm) const =0
 Returns whether a vector must be normalized before scoring according to the scoring scheme. More...
 
virtual ~GeneralScoring ()
 Required for virtual base classes.
 

Static Public Member Functions

static const double LOG_EPS ()
 

Detailed Description

Base class of scoring functions.

Member Function Documentation

virtual double score ( const BowVector &  v,
const BowVector &  w 
) const
pure virtual

Computes the score between two vectors.

Vectors must be sorted and normalized if necessary

Parameters
v(in/out)
w(in/out)
Returns
score
virtual bool mustNormalize ( Vocabulary::LNorm norm) const
pure virtual

Returns whether a vector must be normalized before scoring according to the scoring scheme.

Parameters
normnorm to use
Returns
true iff must normalize