Pass rng to EnumeratedRealDistribution used by bootstrap.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/3cfafe05
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/3cfafe05
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/3cfafe05

Branch: refs/heads/field-ode
Commit: 3cfafe0510554e5d3cc05d9cecb3759d682afdce
Parents: fe23c9b
Author: Phil Steitz <phil.ste...@gmail.com>
Authored: Tue Nov 24 06:20:48 2015 -0700
Committer: Phil Steitz <phil.ste...@gmail.com>
Committed: Tue Nov 24 06:20:48 2015 -0700

----------------------------------------------------------------------
 .../apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/3cfafe05/src/main/java/org/apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java
 
b/src/main/java/org/apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java
index 7c19b1a..f4edf5f 100644
--- 
a/src/main/java/org/apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java
+++ 
b/src/main/java/org/apache/commons/math3/stat/inference/KolmogorovSmirnovTest.java
@@ -400,7 +400,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;

Reply via email to