]> git.sesse.net Git - pkanalytics/commitdiff
Remove a de-facto unused parameter from make_poisson_ci_large().
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 27 Jul 2023 14:27:42 +0000 (16:27 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 27 Jul 2023 14:27:42 +0000 (16:27 +0200)
ultimate.js

index 0040e7a581c151024b51d227610abc3cd4dcd5d5..1fbb3d15f84e0dcb2d493fe17a076ea0697485fd 100644 (file)
@@ -905,7 +905,7 @@ function make_poisson_ci(val, num, z, inverted)
 // Wilson and Hilferty, again recommended for general use in the PDF above
 // (anything from their group “G1” works).
 // https://en.wikipedia.org/wiki/Poisson_distribution#Confidence_interval
-function make_poisson_ci_large(val, num, z, inverted)
+function make_poisson_ci_large(val, num, z)
 {
        let low  = val * Math.pow(1.0 - 1.0 / (9.0 * val) - z / (3.0 * Math.sqrt(val)), 3.0) / num;
        let high = (val + 1.0) * Math.pow(1.0 - 1.0 / (9.0 * (val + 1.0)) + z / (3.0 * Math.sqrt(val + 1.0)), 3.0) / num;
@@ -923,7 +923,7 @@ function make_poisson_ci_large(val, num, z, inverted)
                'min': 0.0,
                'max': 25.0,
                'desired': 0.0,
-               'inverted': inverted,
+               'inverted': false,
        };
 }