Package ubic.basecode.math
Class ROC
- java.lang.Object
-
- ubic.basecode.math.ROC
-
public class ROC extends Object
Functions for calculating Receiver operator characteristics.- Author:
- Paul Pavlidis
-
-
Constructor Summary
Constructors Constructor Description ROC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
aroc(int totalSize, List<Double> ranks)
Calculate area under ROC, up to a given number of False positives.static double
rocpval(int totalSize, List<Double> ranks)
For an AROC value, calculates a p value.
-
-
-
Method Detail
-
aroc
public static double aroc(int totalSize, List<Double> ranks)
Calculate area under ROC, up to a given number of False positives. The input is the total number of items in the data, and the ranks of the positives in the current ranking. LOW ranks are considered better. (e.g., rank 1 is the 'best')- Parameters:
totalSize
-ranks
- LOW ranks are considered better. (e.g., rank 1 is the 'best')- Returns:
- AROC
-
rocpval
public static double rocpval(int totalSize, List<Double> ranks)
For an AROC value, calculates a p value. Uses fact that ROC is equivalent to the Wilcoxon rank sum test.- Parameters:
numpos
- How many positives are in the data.Ranks
- of objects in the class, where low ranks are considered better. (one-based)- Returns:
- The p value.
-
-