From 7d0db9424b05788cf1ae5637228dc49e8736d951 Mon Sep 17 00:00:00 2001 From: William Budington Date: Fri, 5 Aug 2016 19:09:01 -0700 Subject: [PATCH] Round the group calculation to 2 significant digits --- entropy_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entropy_helper.py b/entropy_helper.py index dbe7af3..4b736dc 100644 --- a/entropy_helper.py +++ b/entropy_helper.py @@ -91,5 +91,5 @@ def _entropy_overview(total, matching): # get the overal identifying information measure, and some other # hopefully informative stuff, for the user bits = round(-log(matching / float(total), 2), 2) - group = float(total) / matching + group = round(float(total) / matching, 2) return bits, group