From 31be9f198c846ecd3b16965fa2f3318c9539551f Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Wed, 27 May 2020 02:09:02 +0200 Subject: [PATCH] Stricter tolerance (unit test). --- .../commons/math4/fitting/GaussianCurveFitterTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/math4/fitting/GaussianCurveFitterTest.java b/src/test/java/org/apache/commons/math4/fitting/GaussianCurveFitterTest.java index dcd0a36f5..0624f9af4 100644 --- a/src/test/java/org/apache/commons/math4/fitting/GaussianCurveFitterTest.java +++ b/src/test/java/org/apache/commons/math4/fitting/GaussianCurveFitterTest.java @@ -185,9 +185,9 @@ public class GaussianCurveFitterTest { GaussianCurveFitter fitter = GaussianCurveFitter.create(); double[] parameters = fitter.fit(createDataset(DATASET1).toList()); - Assert.assertEquals(3496978.1837704973, parameters[0], 1e-4); - Assert.assertEquals(4.054933085999146, parameters[1], 1e-4); - Assert.assertEquals(0.015039355620304326, parameters[2], 1e-4); + Assert.assertEquals(3496978.1837704973, parameters[0], 1e-7); + Assert.assertEquals(4.054933085999146, parameters[1], 1e-16); + Assert.assertEquals(0.015039355620304326, parameters[2], 1e-15); } @Test