From 1358d274dbb7b94bf81e37c88883a68b54a88c84 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Tue, 25 Feb 2014 10:26:55 +0000 Subject: [PATCH] Fixed small inconsistency. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1571639 13f79535-47bb-0310-9956-ffa450edef68 --- .../math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java b/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java index c3e22b961..334a5a8eb 100644 --- a/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java +++ b/src/test/java/org/apache/commons/math3/ml/neuralnet/sofm/KohonenUpdateActionTest.java @@ -69,7 +69,7 @@ public class KohonenUpdateActionTest { final Neuron bestBefore = MapUtils.findBest(features, net, dist); // Initial distance from the best match is larger than zero. - Assert.assertTrue(dist.compute(bestBefore.getFeatures(), features) >= 0.2 * 0.2); + Assert.assertTrue(dist.compute(bestBefore.getFeatures(), features) >= 0.2); update.update(net, features);