Class Wilcoxon

java.lang.Object
ubic.basecode.math.Wilcoxon

public class Wilcoxon extends Object
Implements methods from supplementary file I of "Comparing functional annotation analyses with Catmap", Thomas Breslin, Patrik Ed�n and Morten Krogh, BMC Bioinformatics 2004, 5:193 doi:10.1186/1471-2105-5-193

Note that in the Catmap code, zero-based ranks are used, but these are converted to one-based before computation of pvalues. Therefore this code uses one-based ranks throughout.

Version:
Id
Author:
pavlidis
See Also:
  • Constructor Details

    • Wilcoxon

      public Wilcoxon()
  • Method Details

    • exactWilcoxonP

      public static double exactWilcoxonP(double[] a, double[] b)
      Convenience method that computes a p-value using input of two double arrays. They must not contain missing values or ties.
    • exactWilcoxonP

      public static double exactWilcoxonP(int N, int n, int R)
    • wilcoxonP

      public static double wilcoxonP(int N, int n, long R)
      Only use when you know there are no ties.
    • wilcoxonP

      public static double wilcoxonP(int N, int n, long R, boolean ties)
      Parameters:
      N - number of all Items
      n - number of class Items
      R - rankSum for items in the class. (one-based)
      ties - set to true if you know there are ties
    • wilcoxonP

      public static double wilcoxonP(int N, List<Double> ranks)
      Parameters:
      N - total number of items (in and not in the class)
      ranks - of items in the class (one-based)