Package ubic.basecode.math
Class KSTest
- java.lang.Object
-
- ubic.basecode.math.KSTest
-
public class KSTest extends Object
Class to perform the Kolmogorov-Smirnov test. Ported from R.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description KSTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
oneSample(cern.colt.list.DoubleArrayList x, ProbabilityComputer pg)
static double
oneSampleProbability(double statistic, int n)
static double
oneSampleStatistic(cern.colt.list.DoubleArrayList x, ProbabilityComputer pg)
static double
twoSample(cern.colt.list.DoubleArrayList x, cern.colt.list.DoubleArrayList y)
static double
twoSampleProbability(double statistic, int nx, int ny)
static double
twoSampleStatistic(cern.colt.list.DoubleArrayList x, cern.colt.list.DoubleArrayList y)
-
-
-
Method Detail
-
oneSample
public static double oneSample(cern.colt.list.DoubleArrayList x, ProbabilityComputer pg)
- Parameters:
x
-pg
-- Returns:
- pvalue
-
oneSampleProbability
public static double oneSampleProbability(double statistic, int n)
- Parameters:
statistic
-n
-- Returns:
-
oneSampleStatistic
public static double oneSampleStatistic(cern.colt.list.DoubleArrayList x, ProbabilityComputer pg)
- Parameters:
x
-pg
-- Returns:
-
twoSample
public static double twoSample(cern.colt.list.DoubleArrayList x, cern.colt.list.DoubleArrayList y)
- Parameters:
x
-y
-- Returns:
- pvalue
-
twoSampleProbability
public static double twoSampleProbability(double statistic, int nx, int ny)
- Parameters:
statistic
-nx
-ny
-- Returns:
-
twoSampleStatistic
public static double twoSampleStatistic(cern.colt.list.DoubleArrayList x, cern.colt.list.DoubleArrayList y)
- Parameters:
x
-y
-- Returns:
-
-