csli.util.classify.berkeley
Class Classification

java.lang.Object
  extended by csli.util.classify.berkeley.Classification
All Implemented Interfaces:
Serializable

public class Classification
extends Object
implements Serializable

Data structure for storing the confidence value when an example is classified.

Version:
$Id: Classification.java,v 1.2 2006/10/25 22:19:01 niekrasz Exp $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)
See Also:
Serialized Form

Constructor Summary
Classification(String type, double confidence)
          Creates an instance with type type and confidence value confidence.
 
Method Summary
 double getConfidence()
           
 String getType()
           
 void setConfidence(double d)
          Sets the confidence value.
 void setType(String s)
          Sets the name of the classifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classification

public Classification(String type,
                      double confidence)
Creates an instance with type type and confidence value confidence.

Parameters:
type - name of the model
confidence - value represents how confident the algorithm thinks that the example should be classified as type model.
Method Detail

getConfidence

public double getConfidence()
Returns:
The confidence value

getType

public String getType()
Returns:
The name of the classifier.

setConfidence

public void setConfidence(double d)
Sets the confidence value.

Parameters:
d - The confidence value.

setType

public void setType(String s)
Sets the name of the classifier.

Parameters:
s - The name of the classifier.