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/d7a1666f Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/d7a1666f Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/d7a1666f Branch: refs/heads/develop Commit: d7a1666f9a89d9a517f5fbaf283e711046fd054e Parents: 521b9b3 Author: Gilles <er...@apache.org> Authored: Thu May 12 15:50:26 2016 +0200 Committer: Gilles <er...@apache.org> Committed: Tue May 17 15:30:23 2016 +0200 ---------------------------------------------------------------------- .../math4/stat/correlation/KendallsCorrelationTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/d7a1666f/src/test/java/org/apache/commons/math4/stat/correlation/KendallsCorrelationTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/stat/correlation/KendallsCorrelationTest.java b/src/test/java/org/apache/commons/math4/stat/correlation/KendallsCorrelationTest.java index a3f312c..8b40f70 100644 --- a/src/test/java/org/apache/commons/math4/stat/correlation/KendallsCorrelationTest.java +++ b/src/test/java/org/apache/commons/math4/stat/correlation/KendallsCorrelationTest.java @@ -21,8 +21,8 @@ import java.util.Arrays; import org.apache.commons.math4.TestUtils; import org.apache.commons.math4.linear.BlockRealMatrix; import org.apache.commons.math4.linear.RealMatrix; -import org.apache.commons.math4.random.RandomGenerator; -import org.apache.commons.math4.random.Well1024a; +import org.apache.commons.math4.rng.UniformRandomProvider; +import org.apache.commons.math4.rng.RandomSource; import org.apache.commons.math4.stat.correlation.KendallsCorrelation; import org.junit.Assert; import org.junit.Before; @@ -266,7 +266,7 @@ public class KendallsCorrelationTest extends PearsonsCorrelationTest { public void testMath1277() { // example that led to a correlation coefficient outside of [-1, 1] // due to a bug reported in MATH-1277 - RandomGenerator rng = new Well1024a(0); + UniformRandomProvider rng = RandomSource.create(RandomSource.WELL_1024_A, 0); double[] xArray = new double[120000]; double[] yArray = new double[120000]; for (int i = 0; i < xArray.length; ++i) {