|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttc.TCNaiveBayesResult.TCBayesCategoryListElement
holds the scores, probabilities etc. for every category (comparable to a category ranking for every document)
| Field Summary | |
(package private) java.lang.String |
categoryLabel
the label of the category the instance belongs to |
(package private) double |
probability
the probability that the document came out of this category |
| Constructor Summary | |
(package private) |
TCNaiveBayesResult.TCBayesCategoryListElement(java.lang.String catLabel,
double prob)
the constructor for the class, sets the category label and the probability for the category represented by this element |
| Method Summary | |
int |
compareTo(java.lang.Object arg0)
later we want to sort the Results in order to obtain the category ranking. |
boolean |
equals(java.lang.Object arg0)
The category label is the unique "index" |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String categoryLabel
double probability
| Constructor Detail |
TCNaiveBayesResult.TCBayesCategoryListElement(java.lang.String catLabel,
double prob)
catLabel - the label of the categoryprob - the probability that the category "created" the document| Method Detail |
public boolean equals(java.lang.Object arg0)
public int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||