public class ROC extends Object
Constructor and Description |
---|
ROC() |
Modifier and Type | Method and 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.
|
public static double aroc(int totalSize, List<Double> ranks)
totalSize
- ranks
- LOW ranks are considered better. (e.g., rank 1 is the 'best')public static double rocpval(int totalSize, List<Double> ranks)
numpos
- How many positives are in the data.Ranks
- of objects in the class, where low ranks are considered better. (one-based)Copyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.