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 32b8ad699ba0fa017b703e910ab52df049034c89
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Mon Mar 24 16:11:44 2025 +0000

    Update comments to avoid Sonarcloud false positives
---
 .../apache/commons/statistics/inference/KolmogorovSmirnovTestTest.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/KolmogorovSmirnovTestTest.java
 
b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/KolmogorovSmirnovTestTest.java
index 9fa95c9..a81953f 100644
--- 
a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/KolmogorovSmirnovTestTest.java
+++ 
b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/KolmogorovSmirnovTestTest.java
@@ -791,14 +791,13 @@ class KolmogorovSmirnovTestTest {
             if (p == 1) {
                 break;
             }
-            //TestUtils.printf("%s", p);
             double x = dnm / ((double) n * m);
             final double en = ((double) m * n) / ((double) m + n);
             final double p1 = KolmogorovSmirnovDistribution.Two.sf(x, (int) 
Math.round(en));
             final double e1 = Math.abs(p - p1) / Math.max(p, p1);
             x *= Math.sqrt(en);
             // From wikipedia:
-            //x = x + 1.0 / (6 * Math.sqrt(en)) + (x - 1) / (4 * en);
+            //x = x + 1.0 / (6 * Math.sqrt(en)) + (x - 1) / (4 * en)
             final double p2 = KolmogorovSmirnovDistribution.ksSum(x);
             final double e2 = Math.abs(p - p2) / Math.max(p, p2);
             if (e1 > maxe1) {

Reply via email to