public class KolmogorovSmirnov1Sample extends KolmogorovSmirnov
KolmogorovSmirnov.Side, KolmogorovSmirnov.Type
Constructor and Description |
---|
KolmogorovSmirnov1Sample(double[] sample,
ProbabilityDistribution F,
KolmogorovSmirnov.Side side)
Construct a one-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 KolmogorovSmirnov1Sample(double[] sample, ProbabilityDistribution F, KolmogorovSmirnov.Side side)
sample
- a sampleF
- the reference probability distribution to test againstside
- 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.