Skip to content

Commit 0235de6

Browse files
committed
Use 2 * standard error for the radius
This should address repeat failures of this test during builds.
1 parent 88f50d4 commit 0235de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/fitting/leastsquares/LevenbergMarquardtOptimizerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public void testCircleFitting2() {
270270
// Check that the parameters are found within the assumed error bars.
271271
Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[0], xCenter, paramFound[0], 2 * asymptoticStandardErrorFound[0]);
272272
Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[1], yCenter, paramFound[1], 2 * asymptoticStandardErrorFound[1]);
273-
Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[2], radius, paramFound[2], asymptoticStandardErrorFound[2]);
273+
Assert.assertEquals("Delta=" + 2 * asymptoticStandardErrorFound[2], radius, paramFound[2], 2 * asymptoticStandardErrorFound[2]);
274274
}
275275

276276
@Test

0 commit comments

Comments
 (0)