AIM
 All Classes Functions Variables Typedefs Enumerations
ClassProb Class Reference

Public Member Functions

 ClassProb (std::string name, FeatureMap featureMap=FeatureMap(), double prior=1.0, int weight=1)
 
std::string classLabel () const
 
double likelyhoodGiven (Instance &i)
 
double naiveLikelyhoodGiven (Instance &i)
 
double distance (const ClassProb &cp) const
 
void addValue (Instance &i)
 
void combineWith (const ClassProb &p)
 

Public Attributes

double prior
 

Friends

class NaiveBayesClassifier
 
std::ostream & operator<< (std::ostream &os, const ClassProb &prob)
 
std::istream & operator>> (std::istream &is, ClassProb &prob)
 

The documentation for this class was generated from the following files: