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

Method testData

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

Returns the p-value for the 2 sample KS Test against the given data set data . The null hypothesis of this test is that the given data set is from the same population as data The alternative hypothesis is that the data set does not belong to the same population as data

(Vec data)

Source from the content-addressed store, hash-verified

136 * @return the p-value of the test against this data set
137 */
138 public double testData(Vec data)
139 {
140 double d = dCaldO(data);
141 double n = v.length()*data.length() / ((double) v.length() +data.length());
142
143 return pValue(n, d);
144 }
145
146 private double pValue(double n, double d)
147 {

Callers

nothing calls this directly

Calls 3

dCaldOMethod · 0.95
pValueMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected