This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push: new cba0440e5 Show more test context cba0440e5 is described below commit cba0440e547121a0181f3a0f62ff1a637d4d39e0 Author: Sebb <s...@apache.org> AuthorDate: Sun Dec 24 17:46:45 2023 +0000 Show more test context --- .../fitting/leastsquares/LevenbergMarquardtOptimizerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 cdac94d1d..4862eb496 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 @@ -268,9 +268,9 @@ 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], 2 * asymptoticStandardErrorFound[0]); - Assert.assertEquals(yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); - Assert.assertEquals(radius, paramFound[2], asymptoticStandardErrorFound[2]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[0], xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[1], yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]); + Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[2], radius, paramFound[2], asymptoticStandardErrorFound[2]); } @Test