From 533198b1624ae74316694da073e4894a52d8efc7 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Thu, 28 Jul 2016 10:10:58 +0200 Subject: ft-compute-stats: don't omit last bin in histogram mode Bugfix: without this patch, the CDFs do not reach 100%, but stop stop one bin before reaching 100%. --- ft-compute-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ft-compute-stats') 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): return [to_str(x) for x in info + stats + finfo] def make_bins(max_val): - num_bins = int(ceil(max_val / options.bin_size)) + num_bins = int(ceil(max_val / options.bin_size)) + 1 return [x * options.bin_size for x in range(0, num_bins)] def hist_file(fname, scale): -- cgit v1.2.2