public class KSTest extends Object
Constructor and Description |
---|
KSTest(Vec v)
Creates a new statistical test for testing.
|
Modifier and Type | Method and Description |
---|---|
protected double |
dCalc(ContinuousDistribution cd)
Calculates the D statistic for comparison against a continous distribution
|
protected double |
dCaldO(Vec o)
Calculates the D statistic for comparison against another data set
|
void |
setBaseData(Vec v)
Change the original sample to v
|
double |
testData(Vec data)
Returns the p-value for the 2 sample KS Test against the given data set data.
|
double |
testDist(ContinuousDistribution cd)
Returns the p-value for the KS Test against the given distribution cd.
|
public KSTest(Vec v)
v
- the date to be one of the samplespublic void setBaseData(Vec v)
v
- the new original sample.protected double dCalc(ContinuousDistribution cd)
cd
- the distribution to compare againstprotected double dCaldO(Vec o)
o
- the other data setpublic double testDist(ContinuousDistribution cd)
cd
- the distribution to compare againstpublic double testData(Vec data)
data
- the other distribution to compare againstCopyright © 2017. All rights reserved.