Interface ROC
- All Known Implementing Classes:
DataRoc
,DistributionRoc
public interface ROC
This class can be used to draw ROC curves.
- Author:
- Marc Vaudel
-
Method Summary
Modifier and Type Method Description double
getAuc()
Returns an estimation of the area under the curve.double
getSpecificityAt(double sensitivity)
Returns the 1-specificity at a given sensitivity.double
getValueAt(double specificity)
Returns the sensitivity at a given 1-specificity, i.e., 1-type 2 error, the number of true healthy for a given type 1 error, the number of false healthy.double[][]
getxYValues()
Returns xy values to draw the curve.
-
Method Details
-
getValueAt
double getValueAt(double specificity) throws org.apache.commons.math.MathExceptionReturns the sensitivity at a given 1-specificity, i.e., 1-type 2 error, the number of true healthy for a given type 1 error, the number of false healthy.- Parameters:
specificity
- the specificity (0.1 is 10%)- Returns:
- the sensitivity at the given specificity (0.1 is 10%)
- Throws:
org.apache.commons.math.MathException
- if a MathException occurs
-
getSpecificityAt
double getSpecificityAt(double sensitivity) throws org.apache.commons.math.MathExceptionReturns the 1-specificity at a given sensitivity.- Parameters:
sensitivity
- the sensitivity (0.1 is 10%)- Returns:
- the corresponding 1-specificity (0.1 is 10%)
- Throws:
org.apache.commons.math.MathException
- if a MathException occurs
-
getxYValues
double[][] getxYValues() throws org.apache.commons.math.MathExceptionReturns xy values to draw the curve.- Returns:
- xy values to draw the curve
- Throws:
org.apache.commons.math.MathException
- if a MathException occurs
-
getAuc
double getAuc() throws org.apache.commons.math.MathExceptionReturns an estimation of the area under the curve.- Returns:
- an estimation of the area under the curve
- Throws:
org.apache.commons.math.MathException
- if a MathException occurs
-