Re: [ROOT] Mean and variance

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 22 2001 - 13:10:39 MEST


See the TH1 functions.
If you have a TH1 *h, you can do
  h->GetMean();
  h->GetRMS();

Rene Brun

Jyothsna Rani wrote:
> 
> Hi,
> 
> I would like to know whether I can get mean and variance of a histogram in
> my macro. I know how to get the no. of entries for a histogram.
> 
> Is there a way to get the above values? What should I write down in macro
> in order to get these values?
> 
> Thanks,
> Jyothsna



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