You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2015/11/24 14:20:54 UTC

[math] Pass rng to EnumeratedRealDistribution used by bootstrap.

Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X fe23c9b04 -> 3cfafe051


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/MATH_3_X
Commit: 3cfafe0510554e5d3cc05d9cecb3759d682afdce
Parents: fe23c9b
Author: Phil Steitz <ph...@gmail.com>
Authored: Tue Nov 24 06:20:48 2015 -0700
Committer: Phil Steitz <ph...@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;