| Constructor and Description |
|---|
DistributionRoc(Distribution distributionControl,
Distribution distributionPatient)
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 DistributionRoc(Distribution distributionControl, Distribution distributionPatient)
distributionControl - the control distributiondistributionPatient - the patient distributionpublic double getValueAt(double specificity)
throws org.apache.commons.math.MathException
ROCgetValueAt in interface ROCspecificity - 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
ROCgetSpecificityAt in interface ROCsensitivity - the sensitivity (0.1 is 10%)org.apache.commons.math.MathException - if a MathException occurspublic double[][] getxYValues()
throws org.apache.commons.math.MathException
ROCgetxYValues in interface ROCorg.apache.commons.math.MathException - if a MathException occurspublic double getAuc()
throws org.apache.commons.math.MathException
ROCCopyright © 2016. All rights reserved.