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

lemur::api::PseudoFBDocs Class Reference

Representation of a subset of feedback documents. More...

#include <TextQueryRep.hpp>

Inheritance diagram for lemur::api::PseudoFBDocs:

lemur::utility::WeightedIDSet List of all members.

Public Member Functions

 PseudoFBDocs (IndexedRealVector &results, int howManyDoc, bool ignoreWeight=true)
 howManyDocs < 0 means using all results. If ignoreWeight=true, each doc will have the same weight (1.0); otherwise the weight comes from "results".

virtual ~PseudoFBDocs ()
virtual void startIteration () const
virtual bool hasMore () const
virtual void nextIDInfo (int &id, double &relProb) const
 returns an ID and its weight


Private Attributes

IndexedRealVectorres
int howMany
int i
bool noWeight
IndexedRealVector::iterator it

Detailed Description

Representation of a subset of feedback documents.


Constructor & Destructor Documentation

lemur::api::PseudoFBDocs::PseudoFBDocs IndexedRealVector results,
int  howManyDoc,
bool  ignoreWeight = true
[inline]
 

howManyDocs < 0 means using all results. If ignoreWeight=true, each doc will have the same weight (1.0); otherwise the weight comes from "results".

virtual lemur::api::PseudoFBDocs::~PseudoFBDocs  )  [inline, virtual]
 


Member Function Documentation

bool lemur::api::PseudoFBDocs::hasMore  )  const [virtual]
 

Implements lemur::utility::WeightedIDSet.

void lemur::api::PseudoFBDocs::nextIDInfo int &  id,
double &  relProb
const [virtual]
 

returns an ID and its weight

Implements lemur::utility::WeightedIDSet.

virtual void lemur::api::PseudoFBDocs::startIteration  )  const [inline, virtual]
 

Implements lemur::utility::WeightedIDSet.


Member Data Documentation

int lemur::api::PseudoFBDocs::howMany [private]
 

int lemur::api::PseudoFBDocs::i [mutable, private]
 

IndexedRealVector::iterator lemur::api::PseudoFBDocs::it [mutable, private]
 

bool lemur::api::PseudoFBDocs::noWeight [private]
 

IndexedRealVector* lemur::api::PseudoFBDocs::res [mutable, private]
 


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