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

FloatFreqVector Class Reference

#include <FloatFreqVector.hpp>

Inheritance diagram for FloatFreqVector:

FreqVector CSet< FloatFreqCounter, double > ISet< FloatFreqCounter > PSet< FloatFreqCounter > List of all members.

Public Methods

 FloatFreqVector ()
 FloatFreqVector (const Index &index, DOCID_T docID)
 Construct a document frequency vector based on the counts stored in an index.

 FloatFreqVector (const Index &index, TermInfoList *tList)
 FloatFreqVector (const Index &index, vector< DOCID_T > &dids)
 FloatFreqVector (FloatFreqVector *old)
virtual ~FloatFreqVector ()
virtual bool find (TERMID_T ind, double &freq) const
virtual void startIteration () const
virtual bool hasMore () const
virtual void nextFreq (TERMID_T &id, double &freq) const
virtual int size () const
 return the total number of non-zero elements in the vector

virtual void nextFreq (TERMID_T &id, int &freq) const
 Fetch the next frequency entry.

virtual bool find (TERMID_T ind, int &freq) const
 Find the frequency of a word identified by the index "ind".

void addVal (TERMID_T id, int cnt)
void addVal (TERMID_T id, double val)
double sum () const
double sum2 () const
void weigh (const double *vals)
void weigh (double vals)
void addVec (const FloatFreqVector *v2)
void subtract (const FloatFreqVector *v2)
double dotProd (const FloatFreqVector *v2)

Protected Attributes

int i
double s2

Constructor & Destructor Documentation

FloatFreqVector::FloatFreqVector (    )  [inline]
 

FloatFreqVector::FloatFreqVector (  const Index &    index,
DOCID_T    docID
) 
 

Construct a document frequency vector based on the counts stored in an index.

FloatFreqVector::FloatFreqVector (  const Index &    index,
TermInfoList *    tList
) 
 

FloatFreqVector::FloatFreqVector (  const Index &    index,
vector< DOCID_T > &    dids
) 
 

FloatFreqVector::FloatFreqVector (  FloatFreqVector *    old ) 
 

virtual FloatFreqVector::~FloatFreqVector (    )  [inline, virtual]
 


Member Function Documentation

void FloatFreqVector::addVal (  TERMID_T    id,
double    val
) 
 

void FloatFreqVector::addVal (  TERMID_T    id,
int    cnt
) 
 

void FloatFreqVector::addVec (  const FloatFreqVector *    v2 ) 
 

double FloatFreqVector::dotProd (  const FloatFreqVector *    v2 ) 
 

bool FloatFreqVector::find (  TERMID_T    ind,
int &    freq
)  const [virtual]
 

Find the frequency of a word identified by the index "ind".

Implements FreqVector.

bool FloatFreqVector::find (  TERMID_T    ind,
double &    freq
)  const [virtual]
 

virtual bool FloatFreqVector::hasMore (    )  const [inline, virtual]
 

Implements FreqVector.

void FloatFreqVector::nextFreq (  TERMID_T &    id,
int &    freq
)  const [virtual]
 

Fetch the next frequency entry.

Implements FreqVector.

void FloatFreqVector::nextFreq (  TERMID_T &    id,
double &    freq
)  const [virtual]
 

virtual int FloatFreqVector::size (    )  const [inline, virtual]
 

return the total number of non-zero elements in the vector

Implements FreqVector.

virtual void FloatFreqVector::startIteration (    )  const [inline, virtual]
 

Implements FreqVector.

void FloatFreqVector::subtract (  const FloatFreqVector *    v2 ) 
 

double FloatFreqVector::sum (    ) 
 

double FloatFreqVector::sum2 (    ) 
 

void FloatFreqVector::weigh (  double    vals ) 
 

void FloatFreqVector::weigh (  const double *    vals ) 
 


Member Data Documentation

int FloatFreqVector::i [protected]
 

double FloatFreqVector::s2 [protected]
 


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