Pass rng to EnumeratedRealDistribution used by bootstrap.
This commit is contained in:
parent
487ac19801
commit
5f9cfa6ebf
|
@ -401,7 +401,7 @@ public class KolmogorovSmirnovTest {
|
||||||
final double[] combined = new double[xLength + yLength];
|
final double[] combined = new double[xLength + yLength];
|
||||||
System.arraycopy(x, 0, combined, 0, xLength);
|
System.arraycopy(x, 0, combined, 0, xLength);
|
||||||
System.arraycopy(y, 0, combined, xLength, yLength);
|
System.arraycopy(y, 0, combined, xLength, yLength);
|
||||||
final EnumeratedRealDistribution dist = new EnumeratedRealDistribution(combined);
|
final EnumeratedRealDistribution dist = new EnumeratedRealDistribution(rng, combined);
|
||||||
final long d = integralKolmogorovSmirnovStatistic(x, y);
|
final long d = integralKolmogorovSmirnovStatistic(x, y);
|
||||||
int greaterCount = 0;
|
int greaterCount = 0;
|
||||||
int equalCount = 0;
|
int equalCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue