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

lemur::retrieval::CosSimDocRep Class Reference

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

#include <CosSimRetMethod.hpp>

Inheritance diagram for lemur::retrieval::CosSimDocRep:

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

Public Member Functions

 CosSimDocRep (lemur::api::DOCID_T docID, double *idfValue, double norm, int dl)
virtual ~CosSimDocRep ()
virtual double termWeight (lemur::api::TERMID_T termID, const lemur::api::DocInfo *info) const
 return dtf*idf.

virtual double scoreConstant () const
 return the L2 norm for this document.

Private Attributes

double * idf
 idf vector for collection.

double dNorm
 L2 norm for this document.

Detailed Description

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

Constructor & Destructor Documentation

lemur::retrieval::CosSimDocRep::CosSimDocRep lemur::api::DOCID_T  docID,
double *  idfValue,
double  norm,
int  dl

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

Member Function Documentation

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

return the L2 norm for this document.

Implements lemur::api::DocumentRep.

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

return dtf*idf.

Member Data Documentation

double lemur::retrieval::CosSimDocRep::dNorm [private]

L2 norm for this document.

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

idf vector for collection.

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