DBoW2::GeneralScoring Class Reference

Base class of scoring functions. More...

#include <ScoringObject.h>

List of all members.

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.

Detailed Description

Base class of scoring functions.


Member Function Documentation

virtual bool DBoW2::GeneralScoring::mustNormalize ( LNorm norm  )  const [pure virtual]

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

Parameters:
norm norm to use
Returns:
true iff must normalize
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

Parameters:
v (in/out)
w (in/out)
Returns:
score

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