public class ROC extends Object
| Constructor and Description |
|---|
ROC(Distribution distributionControl,
Distribution distributionPatient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getSpecificityAt(double sensitivity)
Returns the specificity at a given sensitivity.
|
double |
getValueAt(double specificity)
Returns the sensitivity at a given specificity, i.e., 1-type 2 error, the
number of true healthy for a given type 1 error, the number of false
healthy.
|
public ROC(Distribution distributionControl, Distribution distributionPatient)
distributionControl - the control distributiondistributionPatient - the patient distributionpublic double getValueAt(double specificity)
throws org.apache.commons.math.MathException
specificity - the specificity (0.1 is 10%)org.apache.commons.math.MathExceptionpublic double getSpecificityAt(double sensitivity)
throws org.apache.commons.math.MathException
sensitivity - the sensitivity (0.1 is 10%)org.apache.commons.math.MathExceptionCopyright © 2014. All rights reserved.