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(MathContext mathContext)
Returns an estimation of the area under the curve.
|
double |
getSpecificityAt(double sensitivity,
MathContext mathContext)
Returns the 1-specificity at a given sensitivity.
|
double |
getValueAt(double specificity,
MathContext mathContext)
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(MathContext mathContext)
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, MathContext mathContext) throws org.apache.commons.math.MathException
ROC
getValueAt
in interface ROC
specificity
- the specificity (0.1 is 10%)mathContext
- the math context to use for calculationorg.apache.commons.math.MathException
- if a MathException occurspublic double getSpecificityAt(double sensitivity, MathContext mathContext) throws org.apache.commons.math.MathException
ROC
getSpecificityAt
in interface ROC
sensitivity
- the sensitivity (0.1 is 10%)mathContext
- the math context to use for calculationorg.apache.commons.math.MathException
- if a MathException occurspublic double[][] getxYValues(MathContext mathContext) throws org.apache.commons.math.MathException
ROC
getxYValues
in interface ROC
mathContext
- the math context to use for calculationorg.apache.commons.math.MathException
- if a MathException occurspublic double getAuc(MathContext mathContext) throws org.apache.commons.math.MathException
ROC
Copyright © 2015. All rights reserved.