-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle calculation of statistics when given 0s
We hadn't handled the calculation of statistics when given a whole bunch of 0s, which is a complication since we're doing a lot of division in there. Technically if we're in a situation where we're supposed to divide by 0 the answer is Infinity, but instead of introducing that, for now I'm just returning 0 as well. Addresses the first reported bug in #213.
- Loading branch information
1 parent
4fb3e4f
commit 781e05b
Showing
2 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters