]> git.sesse.net Git - pkanalytics/commitdiff
Adjust the Poisson CI range, since we were frequently getting out of 0.25.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 24 Jul 2023 21:32:04 +0000 (23:32 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 24 Jul 2023 21:32:04 +0000 (23:32 +0200)
ultimate.js

index 04e9bad802479d3a2a44566eb937c0a3572931f3..5642c73ef4175d47561ef622f6154e2b7a2d7112 100644 (file)
@@ -753,14 +753,14 @@ function make_poisson_ci(val, num, z, inverted)
        // Fix the signs so that we don't get -0.00.
        low = Math.max(low, 0.0);
 
-       // The display range of 0 to 0.25 is fairly arbitrary. So is the desired 0.05 per point.
+       // The display range of 0 to 0.5 is fairly arbitrary. So is the desired 0.05 per point.
        let avg = val / num;
        return {
                'val': avg,
                'lower_ci': low,
                'upper_ci': high,
                'min': 0.0,
-               'max': 0.25,
+               'max': 0.5,
                'desired': 0.05,
                'inverted': inverted,
        };