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)
| 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 | { |