X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ultimate.js;fp=ultimate.js;h=1fbb3d15f84e0dcb2d493fe17a076ea0697485fd;hb=2baedad50eeccb82aa2fb344ad92c93babc71019;hp=0040e7a581c151024b51d227610abc3cd4dcd5d5;hpb=682a5b0238693a7124739423995a2b858b8c37b9;p=pkanalytics 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, }; }