commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [05/21] [math] Pass rng to EnumeratedRealDistribution used by bootstrap.
Date Wed, 09 Dec 2015 16:01:02 GMT
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.steitz@gmail.com>
Authored: Tue Nov 24 06:20:48 2015 -0700
Committer: Phil Steitz <phil.steitz@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;


Mime
View raw message