diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2016-07-28 04:10:58 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2016-07-28 04:10:58 -0400 |
commit | 533198b1624ae74316694da073e4894a52d8efc7 (patch) | |
tree | 042b0f1adb299561ebf269c4b2d1f332a5931fef /ft-compute-stats | |
parent | 91d2a4569978b1134c3ea39ec590d6a8e72d3892 (diff) |
Bugfix: without this patch, the CDFs do not reach 100%, but stop stop
one bin before reaching 100%.
Diffstat (limited to 'ft-compute-stats')
-rwxr-xr-x | ft-compute-stats | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ft-compute-stats b/ft-compute-stats index 6399df4..2f0ed9a 100755 --- a/ft-compute-stats +++ b/ft-compute-stats | |||
@@ -166,7 +166,7 @@ def get_stats(fname): | |||
166 | return [to_str(x) for x in info + stats + finfo] | 166 | return [to_str(x) for x in info + stats + finfo] |
167 | 167 | ||
168 | def make_bins(max_val): | 168 | def make_bins(max_val): |
169 | num_bins = int(ceil(max_val / options.bin_size)) | 169 | num_bins = int(ceil(max_val / options.bin_size)) + 1 |
170 | return [x * options.bin_size for x in range(0, num_bins)] | 170 | return [x * options.bin_size for x in range(0, num_bins)] |
171 | 171 | ||
172 | def hist_file(fname, scale): | 172 | def hist_file(fname, scale): |