MATH-1335

Use new RNG API.
This commit is contained in:
Gilles 2016-05-12 16:32:18 +02:00
parent 022a020bde
commit 1b5aef881b
1 changed files with 2 additions and 3 deletions

View File

@ -31,8 +31,7 @@ import org.apache.commons.math4.distribution.AbstractRealDistribution;
import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math4.exception.NullArgumentException;
import org.apache.commons.math4.exception.OutOfRangeException;
import org.apache.commons.math4.random.RandomGenerator;
import org.apache.commons.math4.random.Well19937c;
import org.apache.commons.math4.rng.UniformRandomProvider;
import org.apache.commons.math4.rng.RandomSource;
import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic;
import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest;
@ -55,7 +54,7 @@ public class PSquarePercentileTest extends
protected double percentile95 = 16.72195;// 20.82d; this is approximation
protected double tolerance = 10E-12;
private final RandomGenerator randomGenerator = new Well19937c(1000);
private final UniformRandomProvider randomGenerator = RandomSource.create(RandomSource.WELL_19937_C, 1000);
@Override
public double getTolerance() {