Re: [ROOT] How to get the error of the mean of a histogram?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 21 2000 - 11:26:19 MEST


Hi,
May be I misunderstood your question, but the answer is
  RMS/sqrt(entries)

In ROOT terminology, if you have an histogram h, you can do:
  Double_t err = h->GetRMS()/TMath::Sqrt(h->GetEntries());

Rene Brun

Zhou Zhang wrote:
> 
> Hi rooters,
> 
>   I have a 1D histogram. I need to get the error of the mean of the
> histogram. Who knows how to do it?
> 
>         Thanks,
> 
> zhangz



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET