This is an automated email from the ASF dual-hosted git repository.
aherbert 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 0235de6ce Use 2 * standard error for the radius
0235de6ce is described below
commit 0235de6ce94e2594dbf0b8d02e3ce787782932e7
Author: Alex Herbert <[email protected]>
AuthorDate: Sat Apr 5 08:09:17 2025 +0100
Use 2 * standard error for the radius
This should address repeat failures of this test during builds.
---
.../legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 4862eb496..0cc28fb87 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
@@ -270,7 +270,7 @@ public class LevenbergMarquardtOptimizerTest
// Check that the parameters are found within the assumed error bars.
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]);
+ Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[2],
radius, paramFound[2], 2 * asymptoticStandardErrorFound[2]);
}
@Test