diff --git a/commons-math-legacy/pom.xml b/commons-math-legacy/pom.xml index 5c2e0c820..e36a98ced 100644 --- a/commons-math-legacy/pom.xml +++ b/commons-math-legacy/pom.xml @@ -133,7 +133,7 @@ maven-surefire-plugin - 4 + 5 diff --git a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java index e2270c335..5f6b2e32a 100644 --- a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java +++ b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java @@ -274,8 +274,8 @@ public class LevenbergMarquardtOptimizerTest final double[] asymptoticStandardErrorFound = optimum.getSigma(1e-14).toArray(); // Check that the parameters are found within the assumed error bars. - Assert.assertEquals(xCenter, paramFound[0], 1.5 * asymptoticStandardErrorFound[0]); - Assert.assertEquals(yCenter, paramFound[1], 1.5 * asymptoticStandardErrorFound[1]); + Assert.assertEquals(xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]); + Assert.assertEquals(yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]); }