Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::query::TFIDFTermScoreFunction Class Reference

#include <TFIDFTermScoreFunction.hpp>

Inheritance diagram for indri::query::TFIDFTermScoreFunction:

indri::query::TermScoreFunction List of all members.

Public Member Functions

 TFIDFTermScoreFunction (double idf, double averageDocumentLength, int qTF=1, double k1=1.2, double b=0.75, bool okapi=false, double k3=7)
 TFIDFTermScoreFunction (double idf, double averageDocumentLength, double qtw=1.0, double k1=1.2, double b=0.75, bool okapi=false, double k3=7)
double scoreOccurrence (double occurrences, int documentLength)
double scoreOccurrence (double occurrences, int contextSize, double documentOccurrences, int documentLength)
double maximumScore (int minimumDocumentLength, int maximumOccurrences)
double queryTermWeight (double queryK1, double queryB, double _qTF)

Private Member Functions

void _precomputeConstants ()

Private Attributes

double _inverseDocumentFrequency
 inverse document frequency (IDF) for this term

double _averageDocumentLength
 average document length in the collection

double _termWeight
double _k1
double _b
double _k3
double _bOverAvgDocLength
double _k1TimesOneMinusB
double _idfTimesK1PlusOne
double _k1TimesBOverAvgDocLength
double _termWeightTimesIDFTimesK1
double _termWeightTimesidfTimesK1PlusOne
bool _okapi

Constructor & Destructor Documentation

indri::query::TFIDFTermScoreFunction::TFIDFTermScoreFunction double  idf,
double  averageDocumentLength,
int  qTF = 1,
double  k1 = 1.2,
double  b = 0.75,
bool  okapi = false,
double  k3 = 7
[inline]
 

indri::query::TFIDFTermScoreFunction::TFIDFTermScoreFunction double  idf,
double  averageDocumentLength,
double  qtw = 1.0,
double  k1 = 1.2,
double  b = 0.75,
bool  okapi = false,
double  k3 = 7
[inline]
 


Member Function Documentation

void indri::query::TFIDFTermScoreFunction::_precomputeConstants  )  [inline, private]
 

double indri::query::TFIDFTermScoreFunction::maximumScore int  minimumDocumentLength,
int  maximumOccurrences
[inline]
 

double indri::query::TFIDFTermScoreFunction::queryTermWeight double  queryK1,
double  queryB,
double  _qTF
[inline]
 

double indri::query::TFIDFTermScoreFunction::scoreOccurrence double  occurrences,
int  contextSize,
double  documentOccurrences,
int  documentLength
[inline, virtual]
 

Implements indri::query::TermScoreFunction.

double indri::query::TFIDFTermScoreFunction::scoreOccurrence double  occurrences,
int  documentLength
[inline, virtual]
 

Implements indri::query::TermScoreFunction.


Member Data Documentation

double indri::query::TFIDFTermScoreFunction::_averageDocumentLength [private]
 

average document length in the collection

double indri::query::TFIDFTermScoreFunction::_b [private]
 

double indri::query::TFIDFTermScoreFunction::_bOverAvgDocLength [private]
 

double indri::query::TFIDFTermScoreFunction::_idfTimesK1PlusOne [private]
 

double indri::query::TFIDFTermScoreFunction::_inverseDocumentFrequency [private]
 

inverse document frequency (IDF) for this term

double indri::query::TFIDFTermScoreFunction::_k1 [private]
 

double indri::query::TFIDFTermScoreFunction::_k1TimesBOverAvgDocLength [private]
 

double indri::query::TFIDFTermScoreFunction::_k1TimesOneMinusB [private]
 

double indri::query::TFIDFTermScoreFunction::_k3 [private]
 

bool indri::query::TFIDFTermScoreFunction::_okapi [private]
 

double indri::query::TFIDFTermScoreFunction::_termWeight [private]
 

double indri::query::TFIDFTermScoreFunction::_termWeightTimesIDFTimesK1 [private]
 

double indri::query::TFIDFTermScoreFunction::_termWeightTimesidfTimesK1PlusOne [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:03 2010 for Lemur by doxygen 1.3.4