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

From: Junjie Zhu (junjie@wam.umd.edu)
Date: Wed Dec 10 2003 - 16:52:59 MET


Hi, Rene:

Thanks! I know how to do this in ROOT, but my question is if the histogram
can not be described by a guassian function or any other function, can we
still do it this way? Since ROOT knows how to calculate the mean
value, it should be able to provide the uncertainty value.

Best,
Junjie


 On Wed, 10 Dec 2003, Rene Brun wrote:

> 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