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

lemur::utility::FloatFreqVector Class Reference

Vector of FloatFreqCounter elements. More...

#include <FloatFreqVector.hpp>

Inheritance diagram for lemur::utility::FloatFreqVector:

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

Public Member Functions

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

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

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

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

void addVal (lemur::api::TERMID_T id, int cnt)
void addVal (lemur::api::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

Detailed Description

Vector of FloatFreqCounter elements.


Constructor & Destructor Documentation

lemur::utility::FloatFreqVector::FloatFreqVector  )  [inline]
 

lemur::utility::FloatFreqVector::FloatFreqVector const lemur::api::Index index,
lemur::api::DOCID_T  docID
 

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

lemur::utility::FloatFreqVector::FloatFreqVector const lemur::api::Index index,
lemur::api::TermInfoList tList
 

lemur::utility::FloatFreqVector::FloatFreqVector const lemur::api::Index index,
vector< lemur::api::DOCID_T > &  dids
 

lemur::utility::FloatFreqVector::FloatFreqVector FloatFreqVector old  ) 
 

virtual lemur::utility::FloatFreqVector::~FloatFreqVector  )  [inline, virtual]
 


Member Function Documentation

void lemur::utility::FloatFreqVector::addVal lemur::api::TERMID_T  id,
double  val
 

void lemur::utility::FloatFreqVector::addVal lemur::api::TERMID_T  id,
int  cnt
 

void lemur::utility::FloatFreqVector::addVec const FloatFreqVector v2  ) 
 

double lemur::utility::FloatFreqVector::dotProd const FloatFreqVector v2  ) 
 

bool lemur::utility::FloatFreqVector::find lemur::api::TERMID_T  ind,
int &  freq
const [virtual]
 

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

Implements lemur::utility::FreqVector.

bool lemur::utility::FloatFreqVector::find lemur::api::TERMID_T  ind,
double &  freq
const [virtual]
 

virtual bool lemur::utility::FloatFreqVector::hasMore  )  const [inline, virtual]
 

Implements lemur::utility::FreqVector.

void lemur::utility::FloatFreqVector::nextFreq lemur::api::TERMID_T id,
int &  freq
const [virtual]
 

Fetch the next frequency entry.

Implements lemur::utility::FreqVector.

void lemur::utility::FloatFreqVector::nextFreq lemur::api::TERMID_T id,
double &  freq
const [virtual]
 

virtual int lemur::utility::FloatFreqVector::size  )  const [inline, virtual]
 

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

Implements lemur::utility::FreqVector.

virtual void lemur::utility::FloatFreqVector::startIteration  )  const [inline, virtual]
 

Implements lemur::utility::FreqVector.

void lemur::utility::FloatFreqVector::subtract const FloatFreqVector v2  ) 
 

double lemur::utility::FloatFreqVector::sum  )  const
 

double lemur::utility::FloatFreqVector::sum2  )  const
 

void lemur::utility::FloatFreqVector::weigh double  vals  ) 
 

void lemur::utility::FloatFreqVector::weigh const double *  vals  ) 
 


Member Data Documentation

int lemur::utility::FloatFreqVector::i [mutable, protected]
 

double lemur::utility::FloatFreqVector::s2 [mutable, protected]
 


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