Repository: commons-math Updated Branches: refs/heads/master 4aa4c6d31 -> c1c61ce70
MATH-1207 Relax tolerance in unit test. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/86eb3a2f Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/86eb3a2f Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/86eb3a2f Branch: refs/heads/master Commit: 86eb3a2fa74988e4ccf3aae7f4b77edb84555320 Parents: 0a5cd11 Author: Gilles <[email protected]> Authored: Mon Mar 9 00:42:35 2015 +0100 Committer: Gilles <[email protected]> Committed: Mon Mar 9 00:42:35 2015 +0100 ---------------------------------------------------------------------- .../commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/86eb3a2f/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java b/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java index 9051dd6..7a064cf 100644 --- a/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java +++ b/src/test/java/org/apache/commons/math4/ml/neuralnet/sofm/KohonenUpdateActionTest.java @@ -87,7 +87,7 @@ public class KohonenUpdateActionTest { Assert.assertEquals(bestBefore, bestAfter); // Distance is now zero. - Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), 0d); + Assert.assertEquals(0, dist.compute(bestAfter.getFeatures(), features), 1e-16); for (int i = 0; i < netSize; i++) { // All distances have decreased.
