You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2023/02/21 15:06:13 UTC

[commons-statistics] 03/05: Update test comments

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git

commit 24478e3da5c55c0bb8652767dc01f4b93fe5fbcb
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Feb 21 12:46:57 2023 +0000

    Update test comments
---
 .../test/java/org/apache/commons/statistics/inference/DDTest.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/DDTest.java b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/DDTest.java
index a43758f..b3394bb 100644
--- a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/DDTest.java
+++ b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/DDTest.java
@@ -288,9 +288,9 @@ class DDTest {
             final BigDecimal e = bx.add(bd(sy));
             // double-double addition should be within 4 eps^2 with eps = 2^-53
             // A single addition is 2 eps^2. Note that the extra computation in add vs fastAdd
-            // does not improve the relative error of the double-double.
-            // XXX
-            // It may be sporadically failed by add as data is random. The test should be updated
+            // does not improve the maximum relative error of the double-double.
+            // Note:
+            // It may be sporadically failed by add as data is random. The test could be updated
             // to assert the RMS relative error of add is lower than fastAdd.
             TestUtils.assertEquals(e, s, 0x1.0p-106, () -> msg.get() + " scale=" + scale);