public static class ReceiverOperatingCharacteristic.Statistic extends MannWhitneyUConfidence.Statistic
nullHypothesisProbability
Modifier | Constructor and Description |
---|---|
protected |
Statistic(ReceiverOperatingCharacteristic roc)
Creates a new instance of Statistic
|
Modifier and Type | Method and Description |
---|---|
static double |
computeAreaUnderCurve(ReceiverOperatingCharacteristic roc)
Computes the "pessimistic" area under the ROC curve using the
top-left rectangle method for numerical integration.
|
static double |
computeAreaUnderCurveTopLeft(java.util.Collection<ReceiverOperatingCharacteristic.DataPoint> points)
Computes the Area Under Curve for an x-axis sorted Collection
of ROC points using the top-left rectangle method for numerical
integration.
|
static double |
computeAreaUnderCurveTrapezoid(java.util.Collection<ReceiverOperatingCharacteristic.DataPoint> points)
Computes the Area Under Curve for an x-axis sorted Collection
of ROC points using the top-left rectangle method for numerical
integration.
|
static double |
computeDPrime(ReceiverOperatingCharacteristic.DataPoint data)
Computes the value of d-prime given a datapoint
|
static ReceiverOperatingCharacteristic.DataPoint |
computeOptimalThreshold(ReceiverOperatingCharacteristic roc)
Determines the DataPoint, and associated threshold, that
simultaneously maximizes the value of
Area=TruePositiveRate+TrueNegativeRate, usually the
upper-left "knee" on the ROC curve.
|
static ReceiverOperatingCharacteristic.DataPoint |
computeOptimalThreshold(ReceiverOperatingCharacteristic roc,
double truePositiveWeight,
double trueNegativeWeight)
Determines the DataPoint, and associated threshold, that
simultaneously maximizes the value of
Area=TruePositiveRate+TrueNegativeRate, usually the
upper-left "knee" on the ROC curve.
|
double |
getAreaUnderCurve()
Getter for areaUnderCurve
|
double |
getDPrime()
Getter for dPrime
|
ReceiverOperatingCharacteristic.DataPoint |
getOptimalThreshold()
Getter for optimalThreshold
|
protected void |
setAreaUnderCurve(double areaUnderCurve)
Setter for areaUnderCurve
|
protected void |
setDPrime(double dPrime)
Setter for dPrime
|
protected void |
setOptimalThreshold(ReceiverOperatingCharacteristic.DataPoint optimalThreshold)
Setter for optimalThreshold
|
computeNullHypothesisProbability, computeU, computeZ, getN1, getN2, getTestStatistic, getU, getZ, setN1, setN2, setU, setZ
getNullHypothesisProbability, setNullHypothesisProbability, toString
clone
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
protected Statistic(ReceiverOperatingCharacteristic roc)
roc
- ROC Curve from which to pull statisticspublic static double computeAreaUnderCurve(ReceiverOperatingCharacteristic roc)
roc
- ROC Curve to compute the area under@PublicationReference(author="Wikipedia", title="Rectangle method", type=WebPage, year=2011, url="http://en.wikipedia.org/wiki/Rectangle_method") public static double computeAreaUnderCurveTopLeft(java.util.Collection<ReceiverOperatingCharacteristic.DataPoint> points)
points
- x-axis sorted collection of x-axis points@PublicationReference(author="Wikipedia", title="Trapezoidal rule", type=WebPage, year=2011, url="http://en.wikipedia.org/wiki/Trapezoidal_rule") public static double computeAreaUnderCurveTrapezoid(java.util.Collection<ReceiverOperatingCharacteristic.DataPoint> points)
points
- x-axis sorted collection of x-axis pointspublic static ReceiverOperatingCharacteristic.DataPoint computeOptimalThreshold(ReceiverOperatingCharacteristic roc)
roc
- ROC Curve to considerpublic static ReceiverOperatingCharacteristic.DataPoint computeOptimalThreshold(ReceiverOperatingCharacteristic roc, double truePositiveWeight, double trueNegativeWeight)
truePositiveWeight
- Amount to weight the TruePositiveRatetrueNegativeWeight
- Amount to weight the TrueNegativeRateroc
- ROC Curve to considerpublic static double computeDPrime(ReceiverOperatingCharacteristic.DataPoint data)
data
- Datapoint from which to estimate d'public double getDPrime()
protected void setDPrime(double dPrime)
dPrime
- Estimated distance between the two classes to be split. Larger
values of d' indicate that the classes are easier to split,
d'=0 means that the classes overlap, and negative values mean
that your classifier is doing worse than chance, chump. This
appears to only be used by psychologists.public double getAreaUnderCurve()
protected void setAreaUnderCurve(double areaUnderCurve)
areaUnderCurve
- Area underneath the ROC curve, on the interval [0,1]. A value of
0.5 means that the classifier is doing no better than chance and
bigger is betterpublic ReceiverOperatingCharacteristic.DataPoint getOptimalThreshold()
protected void setOptimalThreshold(ReceiverOperatingCharacteristic.DataPoint optimalThreshold)
optimalThreshold
- DataPoint, with corresponding threshold, that maximizes the value
of Area=TruePositiveRate*(1-FalsePositiveRate), usually the
upper-left "knee" on the ROC curve.