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

TFIDFDocRep Class Reference

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

#include <TFIDFRetMethod.hpp>

Inheritance diagram for TFIDFDocRep:

DocumentRep List of all members.

Public Methods

 TFIDFDocRep (int docID, Index &dbIndex, double *idfValue, TFIDFParameter::WeightParam &param)
virtual ~TFIDFDocRep ()
virtual double termWeight (int termID, DocInfo *info)
 term weighting function
See also:
TextQueryRetMethod


virtual double scoreConstant ()
 doc-specific constant term in the scoring formula
See also:
TextQueryRetMethod


double docTFWeight (const double rawTF)

Private Attributes

Indexind
TFIDFParameter::WeightParamprm
double * idf

Detailed Description

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


Constructor & Destructor Documentation

TFIDFDocRep::TFIDFDocRep int    docID,
Index   dbIndex,
double *    idfValue,
TFIDFParameter::WeightParam   param
[inline]
 

virtual TFIDFDocRep::~TFIDFDocRep   [inline, virtual]
 


Member Function Documentation

double TFIDFDocRep::docTFWeight const double    rawTF
 

virtual double TFIDFDocRep::scoreConstant   [inline, virtual]
 

doc-specific constant term in the scoring formula

See also:
TextQueryRetMethod

Implements DocumentRep.

virtual double TFIDFDocRep::termWeight int    termID,
DocInfo   info
[inline, virtual]
 

term weighting function

See also:
TextQueryRetMethod

Implements DocumentRep.


Member Data Documentation

double* TFIDFDocRep::idf [private]
 

Index& TFIDFDocRep::ind [private]
 

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


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:08 2004 for LEMUR by doxygen1.2.16