public class KolmogorovSmirnovTest extends Object implements GoodnessOfFitTest
Modifier and Type | Class and Description |
---|---|
static class |
KolmogorovSmirnovTest.Parameterizer
Parameterizer, to use the static instance.
|
Modifier and Type | Field and Description |
---|---|
static KolmogorovSmirnovTest |
STATIC
Static instance
|
Constructor and Description |
---|
KolmogorovSmirnovTest()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double |
calculateTestStatistic(double[] sample1,
double[] sample2)
Calculates the maximum distance between the two empirical CDFs of two data
samples.
|
double |
deviation(double[] fullSample,
double[] conditionalSample)
Measure the deviation of a full sample from a conditional sample.
|
static double |
simpleTest(double[] test)
Simplest version of the test: test if a sorted array is approximately
uniform distributed on [0:1].
|
static double |
simpleTest(double[] test,
double min,
double max)
Simplest version of the test: test if a sorted array is approximately
uniform distributed on the given interval.
|
public static KolmogorovSmirnovTest STATIC
public double deviation(double[] fullSample, double[] conditionalSample)
GoodnessOfFitTest
deviation
in interface GoodnessOfFitTest
fullSample
- Full sampleconditionalSample
- Conditional samplepublic static double calculateTestStatistic(double[] sample1, double[] sample2)
sample1
- first data sample positionssample2
- second data sample positionspublic static double simpleTest(double[] test)
test
- Presorted (!) arraypublic static double simpleTest(double[] test, double min, double max)
test
- Presorted (!) arraymin
- Minimum of uniform distributionmax
- Maximum of uniform distributionCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.