Modifier and Type | Class and Description |
---|---|
static class |
DataRoc.RocInterpolation
Enum listing the possible ways of interpolating points on the ROC.
|
Constructor and Description |
---|
DataRoc(ArrayList<Double> controlValues,
ArrayList<Double> patientValues,
DataRoc.RocInterpolation rocInterpolation)
Constructor.
|
Modifier and Type | Method and 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.
|
public DataRoc(ArrayList<Double> controlValues, ArrayList<Double> patientValues, DataRoc.RocInterpolation rocInterpolation)
controlValues
- the control valuespatientValues
- the patient valuesrocInterpolation
- the method to use to interpolate between pointspublic double getValueAt(double specificity) throws org.apache.commons.math.MathException
ROC
getValueAt
in interface ROC
specificity
- the specificity (0.1 is 10%)org.apache.commons.math.MathException
- if a MathException occurspublic double getSpecificityAt(double sensitivity) throws org.apache.commons.math.MathException
ROC
getSpecificityAt
in interface ROC
sensitivity
- the sensitivity (0.1 is 10%)org.apache.commons.math.MathException
- if a MathException occurspublic double[][] getxYValues() throws org.apache.commons.math.MathException
ROC
getxYValues
in interface ROC
org.apache.commons.math.MathException
- if a MathException occurspublic double getAuc() throws org.apache.commons.math.MathException
ROC
Copyright © 2016. All rights reserved.