commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject [math] Pass rng to EnumeratedRealDistribution used by bootstrap.
Date Tue, 24 Nov 2015 13:24:52 GMT
Repository: commons-math
Updated Branches:
  refs/heads/master 487ac1980 -> 5f9cfa6eb


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/5f9cfa6e
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/5f9cfa6e
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/5f9cfa6e

Branch: refs/heads/master
Commit: 5f9cfa6ebf748be6065680fcb3656ab8379441e8
Parents: 487ac19
Author: Phil Steitz <phil.steitz@gmail.com>
Authored: Tue Nov 24 06:24:46 2015 -0700
Committer: Phil Steitz <phil.steitz@gmail.com>
Committed: Tue Nov 24 06:24:46 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/commons-math/blob/5f9cfa6e/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java
----------------------------------------------------------------------
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 a262a28..38ff185 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;


Mime
View raw message