MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testDist

Method testDist

JSAT/src/jsat/testing/goodnessoffit/KSTest.java:123–129  ·  view source on GitHub ↗

Returns the p-value for the KS Test against the given distribution cd . The null hypothesis of this test is that the given data set belongs to the given distribution. The alternative hypothesis is that the data set does not belong to the given distribution. @param cd the distribu

(ContinuousDistribution cd)

Source from the content-addressed store, hash-verified

121 * @return the p-value of the test against this distribution
122 */
123 public double testDist(ContinuousDistribution cd)
124 {
125 double d = dCalc(cd);
126 double n = v.length();
127
128 return pValue(n, d);
129 }
130
131 /**
132 * Returns the p-value for the 2 sample KS Test against the given data set <tt>data</tt>. <br>

Callers 1

getBestDistributionMethod · 0.95

Calls 3

dCalcMethod · 0.95
pValueMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected