Fix histogram resampling output bin positions
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 15 Aug 2014 11:41:05 +0000 (14:41 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 19 Sep 2014 14:55:51 +0000 (16:55 +0200)
commit4c23d613a90b6aab7d2abf73e11a4a0c43d35c7c
treeb9fc6636b2c9d76b0f1cead1a92251a6ea2590fc
parent5139f5a42feb555194c9101b3f419401e0235b49
Fix histogram resampling output bin positions

The reported bin positions were off by half of the original bin size
from what they actually contained.  This was apparent when the RDF code
started actually using the code.

Change-Id: I651c1f1359430047acc83ca15e9c31087b22d845
src/gromacs/analysisdata/modules/histogram.cpp
src/gromacs/analysisdata/modules/histogram.h
src/gromacs/analysisdata/tests/refdata/AbstractAverageHistogramTest_ResamplesAtDoubleBinWidth.xml
src/gromacs/analysisdata/tests/refdata/AbstractAverageHistogramTest_ResamplesAtDoubleBinWidthWithIntegerBins.xml