From 5f9cfa6ebf748be6065680fcb3656ab8379441e8 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Tue, 24 Nov 2015 06:24:46 -0700 Subject: [PATCH] Pass rng to EnumeratedRealDistribution used by bootstrap. --- .../commons/math4/stat/inference/KolmogorovSmirnovTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java index a262a287c..38ff18566 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java @@ -401,7 +401,7 @@ public class KolmogorovSmirnovTest { final double[] combined = new double[xLength + yLength]; System.arraycopy(x, 0, combined, 0, xLength); 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); int greaterCount = 0; int equalCount = 0;