Constructor and Description |
---|
DistributionRoc(Distribution distributionControl,
Distribution distributionPatient)
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 DistributionRoc(Distribution distributionControl, Distribution distributionPatient)
distributionControl
- the control distributiondistributionPatient
- the patient distributionpublic 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.