public class KolmogorovSmirnov2Samples extends KolmogorovSmirnov
KolmogorovSmirnov.Side, KolmogorovSmirnov.Type
Constructor and Description |
---|
KolmogorovSmirnov2Samples(double[] sample1,
double[] sample2,
KolmogorovSmirnov.Side side)
Construct a two-sample Kolmogorov-Smirnov test.
|
Modifier and Type | Method and Description |
---|---|
double |
pValue()
Get the p-value for the test statistics.
|
double |
statistics()
Get the test statistics.
|
getAlternativeHypothesis, getNullHypothesis
isNullRejected, nGroups, nObs, oneSidedPvalue
public KolmogorovSmirnov2Samples(double[] sample1, double[] sample2, KolmogorovSmirnov.Side side)
sample1
- a samplesample2
- another sampleside
- one-sided or two-sided testpublic double statistics()
HypothesisTest
statistics
in class HypothesisTest
public double pValue()
HypothesisTest
pValue
in class HypothesisTest
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.