[ROOT] Inconsistency of mean calculations in TH1

From: Till Neunhoeffer (neunhoef@dhemze.physik.uni-mainz.de)
Date: Thu Mar 01 2001 - 18:37:05 MET


Hi all,

we have done the following:

1) Create some histogram a and fill it
2) create an identical histogram b
3) for each bin in a, fill a->GetBinContent in the corresponding bin of b

For all we know, these histograms should be identical.

Yet their means and RMS differ. 

This seems to derive from the fact that when filling the histogram a, its
mean gets calculated with the actual x value at which we fill and not with
the center of the corresponding bin.

Is this a bug or a feature?

Thanks
Tom and Till



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET