mulan.evaluation.measure
Class LabelBasedAveragePrecision.ConfidenceActual

java.lang.Object
  extended by mulan.evaluation.measure.LabelBasedAveragePrecision.ConfidenceActual
All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
LabelBasedAveragePrecision

protected class LabelBasedAveragePrecision.ConfidenceActual
extends Object
implements Comparable, Serializable

Class that stores a confidence and a ground truth for one label/example

See Also:
Serialized Form

Constructor Summary
LabelBasedAveragePrecision.ConfidenceActual(double confidence, boolean actual)
          Creates a new instance of this class
 
Method Summary
 int compareTo(Object o)
           
 boolean getActual()
          Returns the ground truth
 double getConfidence()
          Returns the confidence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelBasedAveragePrecision.ConfidenceActual

public LabelBasedAveragePrecision.ConfidenceActual(double confidence,
                                                   boolean actual)
Creates a new instance of this class

Parameters:
confidence - the confidence
actual - the ground truth
Method Detail

getActual

public boolean getActual()
Returns the ground truth

Returns:
the ground truht

getConfidence

public double getConfidence()
Returns the confidence

Returns:
the confidence

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable