mirror of
https://github.com/apache/commons-math.git
synced 2025-03-04 15:39:17 +00:00
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:
parent
731ff8099f
commit
f0cbf23ebf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user