Histograms: Ensure that the bins are aligned to an odd number of half bin widths
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 06:42:51 +0000 (07:42 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 06:42:51 +0000 (07:42 +0100)
commit9c37a8c675de65552001052edf159d6bdfbf18ac
treeab02fadba4c2c826e5a82fc097aaeda31ab3f5bc
parent849612c47d1186efe84b310256a3dd7476db7c72
Histograms:  Ensure that the bins are aligned to an odd number of half bin widths

This has the benefit that the centres of the bins are aligned to integer multiples
of bin widths, and thus the labels are shorter.  For example, instead of labels
-1.5 -0.5 0.5 1.5 2.5 we get -2 -1 0 1 2 which is more aesthetically pleasing.
src/math/histogram.c