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)

Constructor Index

 o ClassificationSet()
Class constructor.

Method Index

 o addElement(Classification)
Adds a Classification item to the set.
 o elements()
 o getClassification(String)
 o getHighest()
 o size()
 o toString()

Constructors

 o ClassificationSet
public ClassificationSet()
Class constructor.

Methods

 o addElement
public void addElement(Classification c)
Adds a Classification item to the set.

 o getClassification
public Classification getClassification(String s)
Parameters:
s - The type name.
Returns:
The classification information of type s in this set.
 o getHighest
public Classification getHighest()
Returns:
The Classification item with the highest confidence value.
 o elements
public Enumeration elements()
Returns:
An enumeration of Classification items.
 o size
public int size()
Returns:
number of Classification items in this set.
 o 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