commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [24/25] [math] MATH-1335
Date Tue, 17 May 2016 15:49:57 GMT
MATH-1335

Use new RNG API.


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

Branch: refs/heads/develop
Commit: 022a020bde5afba4f2e9b6753c199386e79d7825
Parents: d7a1666
Author: Gilles <erans@apache.org>
Authored: Thu May 12 15:53:02 2016 +0200
Committer: Gilles <erans@apache.org>
Committed: Tue May 17 15:30:23 2016 +0200

----------------------------------------------------------------------
 .../commons/math4/stat/correlation/StorelessCovarianceTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/022a020b/src/test/java/org/apache/commons/math4/stat/correlation/StorelessCovarianceTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math4/stat/correlation/StorelessCovarianceTest.java
b/src/test/java/org/apache/commons/math4/stat/correlation/StorelessCovarianceTest.java
index dc2197b..9378f29 100644
--- a/src/test/java/org/apache/commons/math4/stat/correlation/StorelessCovarianceTest.java
+++ b/src/test/java/org/apache/commons/math4/stat/correlation/StorelessCovarianceTest.java
@@ -19,7 +19,8 @@ package org.apache.commons.math4.stat.correlation;
 import org.apache.commons.math4.TestUtils;
 import org.apache.commons.math4.linear.Array2DRowRealMatrix;
 import org.apache.commons.math4.linear.RealMatrix;
-import org.apache.commons.math4.random.ISAACRandom;
+import org.apache.commons.math4.rng.UniformRandomProvider;
+import org.apache.commons.math4.rng.RandomSource;
 import org.apache.commons.math4.stat.correlation.StorelessBivariateCovariance;
 import org.apache.commons.math4.stat.correlation.StorelessCovariance;
 import org.junit.Assert;
@@ -235,7 +236,7 @@ public class StorelessCovarianceTest {
         StorelessBivariateCovariance cov = new StorelessBivariateCovariance();// covariance
of the superset
         StorelessBivariateCovariance chk = new StorelessBivariateCovariance();// check covariance
made by appending covariance of subsets
 
-        ISAACRandom rand = new ISAACRandom(10L);// Seed can be changed
+        final UniformRandomProvider rand = RandomSource.create(RandomSource.ISAAC, 10L);//
Seed can be changed
         for (int s = 0; s < num_sets; s++) {// loop through sets of samlpes
             StorelessBivariateCovariance covs = new StorelessBivariateCovariance();
             for (int i = 0; i < 5; i++) { // loop through individual samlpes.


Mime
View raw message