Skip to content

Commit

Permalink
Round the group calculation to 2 significant digits
Browse files Browse the repository at this point in the history
  • Loading branch information
Hainish committed Aug 6, 2016
1 parent 3a46f8e commit 7d0db94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entropy_helper.py
Expand Up @@ -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

0 comments on commit 7d0db94

Please sign in to comment.