|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttc.TCkNNListElement
A Class to hold the results of the k-NN algorithm for one document
| Field Summary | |
java.util.ArrayList |
categoryLabels
the index of the category |
double |
distance
the distance (euclidian or cosine simlarity) to the vector to classify |
private int |
sortMethod
|
| Constructor Summary | |
(package private) |
TCkNNListElement(java.util.ArrayList labels,
double dist,
int sortmethod)
|
| Method Summary | |
int |
compareTo(java.lang.Object arg0)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.ArrayList categoryLabels
public double distance
private int sortMethod
| Constructor Detail |
TCkNNListElement(java.util.ArrayList labels,
double dist,
int sortmethod)
| Method Detail |
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 | ||||||||||