Pass rng to EnumeratedRealDistribution used by bootstrap.

This commit is contained in:
Phil Steitz 2015-11-24 06:24:46 -07:00
parent 487ac19801
commit 5f9cfa6ebf
1 changed files with 1 additions and 1 deletions

View File

@ -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;