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

lemur::retrieval::TFIDFDocRep Class Reference

Representation of a doc (as a weighted vector) in the TFIDF method. More...

#include <TFIDFRetMethod.hpp>

Inheritance diagram for lemur::retrieval::TFIDFDocRep:

lemur::api::DocumentRep List of all members.

Public Member Functions

 TFIDFDocRep (lemur::api::DOCID_T docID, const lemur::api::Index &dbIndex, double *idfValue, TFIDFParameter::WeightParam &param)
virtual ~TFIDFDocRep ()
virtual double termWeight (lemur::api::TERMID_T termID, const lemur::api::DocInfo *info) const
virtual double scoreConstant () const
 doc-specific constant term in the scoring formula TextQueryRetMethod

double docTFWeight (const double rawTF) const

Private Attributes

const lemur::api::Indexind
double * idf

Detailed Description

Representation of a doc (as a weighted vector) in the TFIDF method.

Constructor & Destructor Documentation

lemur::retrieval::TFIDFDocRep::TFIDFDocRep lemur::api::DOCID_T  docID,
const lemur::api::Index dbIndex,
double *  idfValue,
TFIDFParameter::WeightParam param

virtual lemur::retrieval::TFIDFDocRep::~TFIDFDocRep  )  [inline, virtual]

Member Function Documentation

double lemur::retrieval::TFIDFDocRep::docTFWeight const double  rawTF  )  const

virtual double lemur::retrieval::TFIDFDocRep::scoreConstant  )  const [inline, virtual]

doc-specific constant term in the scoring formula TextQueryRetMethod

Implements lemur::api::DocumentRep.

virtual double lemur::retrieval::TFIDFDocRep::termWeight lemur::api::TERMID_T  termID,
const lemur::api::DocInfo info
const [inline, virtual]

Member Data Documentation

double* lemur::retrieval::TFIDFDocRep::idf [private]

const lemur::api::Index& lemur::retrieval::TFIDFDocRep::ind [private]

TFIDFParameter::WeightParam& lemur::retrieval::TFIDFDocRep::prm [private]

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