All Packages Class Hierarchy This Package Previous Next Index
Class jsvm.ClassificationSet
java.lang.Object
|
+----jsvm.ClassificationSet
- public class ClassificationSet
- extends Object
- implements Serializable
Data structure for storing a set of confidence values
in descending order.
- Version:
- $Id$
- Author:
- Heloise Hse (hwawen@eecs.berkeley.edu)
-
ClassificationSet()
- Class constructor.
-
addElement(Classification)
- Adds a Classification item to the set.
-
elements()
-
-
getClassification(String)
-
-
getHighest()
-
-
size()
-
-
toString()
-
ClassificationSet
public ClassificationSet()
- Class constructor.
addElement
public void addElement(Classification c)
- Adds a Classification item to the set.
getClassification
public Classification getClassification(String s)
- Parameters:
- s - The type name.
- Returns:
- The classification information of type
s
in this set.
getHighest
public Classification getHighest()
- Returns:
- The
Classification
item with the
highest confidence value.
elements
public Enumeration elements()
- Returns:
- An enumeration of Classification items.
size
public int size()
- Returns:
- number of Classification items in this set.
toString
public String toString()
- Returns:
- The text representation of this set.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index