Re: Histogram means over different parts

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Tue, 27 Sep 2011 06:12:29 +0000


Hi,

 The way to get the mean in a restricted range (e.g. from bin 1 to 20 included) is

h1->GetXaxis()->SetRange(1,20);
h1->GetMean();

Best Regards,

 Lorenzo
On Sep 25, 2011, at 7:00 PM, Aamer Wali Rauf wrote:

Hi,

Is there a method (or a robust way) that I can (e.g, for 1D histograms) get mean values for parts of the histograms (e.g., from bin 1 to 20, bin 30 to bin 60 etc..) instead of one mean for the whole histogram?

Thanks,
Aamer Received on Tue Sep 27 2011 - 08:12:35 CEST

This archive was generated by hypermail 2.2.0 : Tue Sep 27 2011 - 11:50:01 CEST