Package ubic.basecode.math
Class KSTest
java.lang.Object
ubic.basecode.math.KSTest
Class to perform the Kolmogorov-Smirnov test. Ported from R.
- Author:
- pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
static double
oneSampleProbability
(double statistic, int n) static double
static double
static double
twoSampleProbability
(double statistic, int nx, int ny) static double
-
Constructor Details
-
KSTest
public KSTest()
-
-
Method Details
-
oneSample
- Parameters:
x
-pg
-- Returns:
- pvalue
-
oneSampleProbability
public static double oneSampleProbability(double statistic, int n) - Parameters:
statistic
-n
-- Returns:
-
oneSampleStatistic
- Parameters:
x
-pg
-- Returns:
-
twoSample
- Parameters:
x
-y
-- Returns:
- pvalue
-
twoSampleProbability
public static double twoSampleProbability(double statistic, int nx, int ny) - Parameters:
statistic
-nx
-ny
-- Returns:
-
twoSampleStatistic
- Parameters:
x
-y
-- Returns:
-