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

CosSimDocRep Class Reference

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

#include <CosSimRetMethod.hpp>

Inheritance diagram for CosSimDocRep:

DocumentRep List of all members.

Public Methods

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

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


Detailed Description

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


Constructor & Destructor Documentation

CosSimDocRep::CosSimDocRep DOCID_T    docID,
double *    idfValue,
double    norm,
int    dl
[inline]
 

virtual CosSimDocRep::~CosSimDocRep   [inline, virtual]
 


Member Function Documentation

virtual double CosSimDocRep::scoreConstant   const [inline, virtual]
 

return the L2 norm for this document.

Implements DocumentRep.

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

return dtf*idf.

Implements DocumentRep.


The documentation for this class was generated from the following file:
Generated on Wed Nov 3 12:59:28 2004 for Lemur Toolkit by doxygen1.2.18