I’ve an histogram with a variable bin size (given by detector time resolution) and I would like to compute the mean (the equivalent for GetMean()) and the uncertainty on the mean (the equivalent for GetMeanError()).
I’m wondering if there is a way to tell ROOT about the variable bin size, because, as far as I could see, it is not accounted for in the GetMean() and GetMeanError() methods.
Hi Wile,
thank you for your reply.
Yes, of course, the “precision” of the result is limited by bins’ widths. We can actually “deforme” a distribution changing the bin width.
What I meant was more like: how to take into account the bin width when computing the mean value (and the mean error). It seems to me (but I could be wrong) that in the GetMean() method what is done is a weighted mean of the bin centres, where the weights are the bins content (and not the bin content * the bin width).
Thank you
Cheers
Paola