public class Fallout extends java.lang.Object implements ClassificationMeasure
FPR = FP / N = FP / (FP + TN)Fall-out is actually Type I error and closely related to specificity (1 - specificity).
Constructor and Description |
---|
Fallout() |
Modifier and Type | Method and Description |
---|---|
double |
measure(int[] truth,
int[] prediction)
Returns an index to measure the quality of classification.
|
static double |
of(int[] truth,
int[] prediction)
Calculates the false alarm rate.
|
java.lang.String |
toString() |
public static final Fallout instance
public double measure(int[] truth, int[] prediction)
ClassificationMeasure
measure
in interface ClassificationMeasure
truth
- the true class labels.prediction
- the predicted class labels.public static double of(int[] truth, int[] prediction)
public java.lang.String toString()
toString
in class java.lang.Object