public class BayesResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double[] |
classPriors
Stores the prior probabilities of each class
|
protected java.util.Hashtable<java.lang.String,double[]> |
featureTable
Stores the counts for each feature: an entry in the hashTable stores
the array of class counts for a feature
|
Constructor and Description |
---|
BayesResult() |
Modifier and Type | Method and Description |
---|---|
double[] |
getClassPriors()
Returns the class priors
|
java.util.Hashtable<java.lang.String,double[]> |
getFeatureTable()
Returns the feature hash
|
void |
setClassPriors(double[] priors)
Sets the class priors
|
void |
setFeatureTable(java.util.Hashtable<java.lang.String,double[]> table)
Sets the feature hash
|
protected double[] classPriors
protected java.util.Hashtable<java.lang.String,double[]> featureTable
public void setClassPriors(double[] priors)
public double[] getClassPriors()
public void setFeatureTable(java.util.Hashtable<java.lang.String,double[]> table)
public java.util.Hashtable<java.lang.String,double[]> getFeatureTable()