|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An Instance that has a probability distribution across class values. Particularly useful for EM using a SoftClassifier. Defined as an Interface to allow SoftClassifiedFullInstance and SoftClassifiedSparseInstance to extend Instance and SparseInstance respectively while still respecting the capabilities of a SoftClassifiedInstance
Method Summary | |
double[] |
getClassDistribution()
Get the class distribution for this instance |
double |
getClassProbability(int classNum)
Return the probability the instance is in the given class |
void |
setClassDistribution(double[] dist)
Set the class distribution for this instance |
void |
setClassProbability(int classNum,
double prob)
Set the probability the instance is in the given class |
Method Detail |
public double getClassProbability(int classNum)
public void setClassProbability(int classNum, double prob)
public double[] getClassDistribution()
public void setClassDistribution(double[] dist) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |