From: Steinar H. Gunderson Date: Thu, 27 Jul 2023 14:27:42 +0000 (+0200) Subject: Remove a de-facto unused parameter from make_poisson_ci_large(). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2baedad50eeccb82aa2fb344ad92c93babc71019;p=pkanalytics Remove a de-facto unused parameter from make_poisson_ci_large(). --- diff --git a/ultimate.js b/ultimate.js index 0040e7a..1fbb3d1 100644 --- a/ultimate.js +++ b/ultimate.js @@ -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, }; }