Class ROC

java.lang.Object
ubic.basecode.math.ROC

public class ROC extends Object
Functions for calculating Receiver operator characteristics.
Author:
Paul Pavlidis
  • Constructor Details

    • ROC

      public ROC()
  • Method Details

    • 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.