Commit 13b46263 authored by Tony Mancill's avatar Tony Mancill

add patch for MATH-1207 test error

parent b913a18e
X-Git-Url: https://git1-us-west.apache.org/repos/asf?p=commons-math.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fapache%2Fcommons%2Fmath4%2Fml%2Fneuralnet%2Fsofm%2FKohonenUpdateActionTest.java;h=7a064cfc0863c390f6266ed806589eb7bcea39cd;hp=9051dd65e79271d92c80989d86931a6f67cea435;hb=86eb3a2fa74988e4ccf3aae7f4b77edb84555320;hpb=0a5cd11327d50e5906fb4dc08bce5baea6b2d247
--- 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
@@ -82,7 +82,7 @@
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.
01_ignore_unstable_tests.diff
02_MATH-1207.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment