[ROOT] Re: how to get the error bar for the mean of a histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 10 2003 - 10:53:35 MET


Hi,

Make a fit with a gaussian, eg

{
   TH1F h("h","test",100,-3,3);
   h.FillRandom("gaus",1000);
   gStyle->SetOptFit(111);
   h.Fit("gaus","q");
}

Rene Brun

Junjie Zhu wrote:
> 
> Hi, Rooters:
> 
> For a normal histogram and the upper corner will often show the entries,
> mean and sigma values for this histogram, now I want to know how to get the
> uncertainties for the mean and sigma values. I searched the root talk and
> did not find the right solution. Can anybody help me? Thanks!
> 
> Best,
> Junjie



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET