public static class ReceiverOperatingCharacteristic.DataPoint extends AbstractCloneableSerializable
Modifier and Type | Class and Description |
---|---|
static class |
ReceiverOperatingCharacteristic.DataPoint.Sorter
Sorts DataPoints in ascending order according to their
falsePositiveRate (x-axis)
|
Constructor and Description |
---|
DataPoint(ScalarThresholdBinaryCategorizer classifier,
DefaultBinaryConfusionMatrix confusionMatrix)
Creates a new instance of DataPoint
|
Modifier and Type | Method and Description |
---|---|
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
|
clone
public DataPoint(ScalarThresholdBinaryCategorizer classifier, DefaultBinaryConfusionMatrix confusionMatrix)
classifier
- Binary classifier used to create the corresponding ConfusionMatrix,
which is really a wrapper for the thresholdconfusionMatrix
- Corresponding ConfusionMatrix with this datapointpublic ScalarThresholdBinaryCategorizer getClassifier()
public void setClassifier(ScalarThresholdBinaryCategorizer classifier)
classifier
- Binary classifier used to create the corresponding ConfusionMatrix,
which is really a wrapper for the thresholdpublic DefaultBinaryConfusionMatrix getConfusionMatrix()
protected void setConfusionMatrix(DefaultBinaryConfusionMatrix confusionMatrix)
confusionMatrix
- Corresponding ConfusionMatrix with this datapointpublic double getFalsePositiveRate()
public double getTruePositiveRate()