Re: Histogram Statistics

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 16 1999 - 12:16:56 MEST


Hi Patrice,
In 2.22/05, GetMean or GetRMS compute these quantities from the bin
contents when an axis range has been specified.
For example when zooming with the mouse on a histogram or scatter-plot
the mean value, rms, etc are recomputed from the current visible range.
I have now implemented in my development version 2.22/06 the facility
to also start from the bin contents in case the normal statistics filled
by TH1::fill are not available (your case).
Thanks for the remark.

Rene Brun

Patrice Lebrun wrote:
> 
> Hi,
> 
>   I have an TH1F histogram filled only in using
> SetBinContent method. Making that, the statistics
> array is not computed.
> I try to use TH1::GetStats(Stat_t *stats) or GetRMS() via
> TAxis::SetRange but
> without sucess.
> Is there a simple way to get mean and RMS values of a such histogram ?
> 
> --
> Patrice Lebrun
> Institut de Physique Nucleaire de Lyon
> Phone: 04 72 44 84 43
> Fax: 04 72 43 14 52
> 
>



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET