From 7b6618cfa60608935206b1bc4c3dc19a79b770d9 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Sun, 12 Feb 2012 23:58:17 -0500 Subject: [PATCH] removed util.math.binomial_conf_center_radius --- p2pool/util/math.py | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/p2pool/util/math.py b/p2pool/util/math.py index 4482f33..392b0b7 100644 --- a/p2pool/util/math.py +++ b/p2pool/util/math.py @@ -145,14 +145,6 @@ else: left_a = find_root(f, (1-conf)/2, bounds=(0, 1-conf)) return float(special.betaincinv(x+1, n-x+1, left_a)), float(special.betaincinv(x+1, n-x+1, left_a + conf)) -def binomial_conf_center_radius(x, n, conf=0.95): - assert 0 <= x <= n and 0 <= conf < 1 - left, right = binomial_conf_interval(x, n, conf) - if n == 0: - return (left+right)/2, (right-left)/2 - p = x/n - return p, max(p - left, right - p) - minmax = lambda x: (min(x), max(x)) def format_binomial_conf(x, n, conf=0.95, f=lambda x: x): -- 1.7.1