Bayes::Score Class Reference

#include <Score.h>

List of all members.

Public Member Functions

 Score ()
 Score (const boost::shared_ptr< list< ScoredWord > > &ptScoredList, double dListScore)
std::string str (bool withScoredWords=false) const

Public Attributes

boost::shared_ptr< std::list<
ScoredWord > > 
double m_dListScore

Detailed Description

Class that represents the result of a call to the BayesClassifier::score function

See also:

Constructor & Destructor Documentation

Bayes::Score::Score (  )  [inline]

The default constructor creates an empty Score

Bayes::Score::Score ( const boost::shared_ptr< list< ScoredWord > > &  ptScoredList,
double  dListScore 
) [inline]

Creates a new Score with the given list of ScoredWords and overall dListScore

ptScoredList list of ScoredWords that shall be used for the new Score object
dListScore the overall score of the given list

Member Function Documentation

string Bayes::Score::str ( bool  withScoredWords = false  )  const

Returns a string with the current representation of this Score. Used for statistic outputs.

withScoredWords whether or not the ptScoredList shall be output, too
the string holding the statistics of this Score

Member Data Documentation

boost::shared_ptr<std::list<ScoredWord> > Bayes::Score::m_ptScoredList

the list of tokens that were used to create the actual Score

double Bayes::Score::m_dListScore

the weighted score of the complete list

The documentation for this class was generated from the following files:
Generated on Sat Feb 10 21:32:39 2007 for bayes-irc by  doxygen 1.5.1