10 #ifndef __D_T_SCORING_OBJECT__ 11 #define __D_T_SCORING_OBJECT__ 53 #define __SCORING_CLASS(NAME, MUSTNORMALIZE, NORM) \ 54 NAME: public GeneralScoring \ 62 virtual double score(const BowVector &v, const BowVector &w) const; \ 69 virtual inline bool mustNormalize(LNorm &norm) const \ 70 { norm = NORM; return MUSTNORMALIZE; } \ 91 #undef __SCORING_CLASS
virtual ~GeneralScoring()
Required for virtual base classes.
virtual double score(const BowVector &v, const BowVector &w) const =0
virtual bool mustNormalize(LNorm &norm) const =0
Base class of scoring functions.
class __SCORING_CLASS(L1Scoring, true, L1)
L1 Scoring object.
LNorm
L-norms for normalization.
Vector of words to represent images.
static const double LOG_EPS
Log of epsilon.
TFSIMD_FORCE_INLINE const tfScalar & w() const