Package ubic.basecode.math
Class ROC
java.lang.Object
ubic.basecode.math.ROC
Functions for calculating Receiver operator characteristics.
- Author:
- Paul Pavlidis
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ROC
public ROC()
-
-
Method Details
-
aroc
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
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.
-