gov.sandia.cognition.statistics.method
Class ReceiverOperatingCharacteristic.DataPoint

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.method.ReceiverOperatingCharacteristic.DataPoint
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable
Enclosing class:
ReceiverOperatingCharacteristic

public static class ReceiverOperatingCharacteristic.DataPoint
extends AbstractCloneableSerializable

Contains information about a datapoint on an ROC curve

See Also:
Serialized Form

Nested Class Summary
static class ReceiverOperatingCharacteristic.DataPoint.Sorter
          Sorts DataPoints in ascending order according to their falsePositiveRate (x-axis)
 
Constructor Summary
ReceiverOperatingCharacteristic.DataPoint(ScalarThresholdBinaryCategorizer classifier, DefaultBinaryConfusionMatrix confusionMatrix)
          Creates a new instance of DataPoint
 
Method Summary
 ScalarThresholdBinaryCategorizer getClassifier()
          Getter for classifier
 DefaultBinaryConfusionMatrix getConfusionMatrix()
          Getter for confusionMatrix
 double getFalsePositiveRate()
          Gets the falsePositiveRate associated with this datapoint
 double getTruePositiveRate()
          Gets the truePositiveRate associated with this datapoint
 void setClassifier(ScalarThresholdBinaryCategorizer classifier)
          Setter for classifier
protected  void setConfusionMatrix(DefaultBinaryConfusionMatrix confusionMatrix)
          Setter for confusionMatrix
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverOperatingCharacteristic.DataPoint

public ReceiverOperatingCharacteristic.DataPoint(ScalarThresholdBinaryCategorizer classifier,
                                                 DefaultBinaryConfusionMatrix confusionMatrix)
Creates a new instance of DataPoint

Parameters:
classifier - Binary classifier used to create the corresponding ConfusionMatrix, which is really a wrapper for the threshold
confusionMatrix - Corresponding ConfusionMatrix with this datapoint
Method Detail

getClassifier

public ScalarThresholdBinaryCategorizer getClassifier()
Getter for classifier

Returns:
Binary classifier used to create the corresponding ConfusionMatrix, which is really a wrapper for the threshold

setClassifier

public void setClassifier(ScalarThresholdBinaryCategorizer classifier)
Setter for classifier

Parameters:
classifier - Binary classifier used to create the corresponding ConfusionMatrix, which is really a wrapper for the threshold

getConfusionMatrix

public DefaultBinaryConfusionMatrix getConfusionMatrix()
Getter for confusionMatrix

Returns:
Corresponding ConfusionMatrix with this datapoint

setConfusionMatrix

protected void setConfusionMatrix(DefaultBinaryConfusionMatrix confusionMatrix)
Setter for confusionMatrix

Parameters:
confusionMatrix - Corresponding ConfusionMatrix with this datapoint

getFalsePositiveRate

public double getFalsePositiveRate()
Gets the falsePositiveRate associated with this datapoint

Returns:
falsePositiveRate associated with this datapoint

getTruePositiveRate

public double getTruePositiveRate()
Gets the truePositiveRate associated with this datapoint

Returns:
truePositiveRate associated with this datapoint