Make test reproducible.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1488421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2013-05-31 22:22:08 +00:00
parent 731ff8099f
commit f0cbf23ebf

View File

@ -503,13 +503,12 @@ public final class BicubicSplineInterpolatingFunctionTest {
= new BicubicSplineInterpolatingFunction(xval, yval, zval,
dZdX, dZdY, dZdXdY);
double x, y;
double expected, result;
final RandomGenerator rng = new Well19937c(1234567L); // "tol" depends on the seed.
final UniformRealDistribution distX
= new UniformRealDistribution(xval[0], xval[xval.length - 1]);
= new UniformRealDistribution(rng, xval[0], xval[xval.length - 1]);
final UniformRealDistribution distY
= new UniformRealDistribution(yval[0], yval[yval.length - 1]);
= new UniformRealDistribution(rng, yval[0], yval[yval.length - 1]);
final int numSamples = 50;
final double tol = 6;
@ -588,7 +587,6 @@ public final class BicubicSplineInterpolatingFunctionTest {
BivariateFunction bcf = new BicubicSplineInterpolatingFunction(xval, yval, zval,
dZdX, dZdY, dZdXdY);
double x, y;
double expected, result;
final RandomGenerator rng = new Well19937c(1234567L); // "tol" depends on the seed.
final UniformRealDistribution distX