tc
Class TCkNNResult.TCkNNCategoryListElement

java.lang.Object
  extended bytc.TCkNNResult.TCkNNCategoryListElement
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
TCkNNResult

class TCkNNResult.TCkNNCategoryListElement
extends java.lang.Object
implements java.lang.Comparable

the elements which will be filled in the array list of the parent class with the two compare functions a category label, scores, and occurences


Field Summary
(package private)  java.lang.String categoryLabel
           
(package private)  int occurence
           
(package private)  double score
           
 
Constructor Summary
(package private) TCkNNResult.TCkNNCategoryListElement(java.lang.String catLabel)
           
 
Method Summary
 void addScore(double s)
           
 int compareTo(java.lang.Object arg0)
           
 boolean equals(java.lang.Object arg0)
          The label is the unique "index"
 void incrementOccurence()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryLabel

java.lang.String categoryLabel

occurence

int occurence

score

double score
Constructor Detail

TCkNNResult.TCkNNCategoryListElement

TCkNNResult.TCkNNCategoryListElement(java.lang.String catLabel)
Method Detail

addScore

public void addScore(double s)

incrementOccurence

public void incrementOccurence()

equals

public boolean equals(java.lang.Object arg0)
The label is the unique "index"


compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable