Re: [ROOT] TH1 overflow bins and a Mean value

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Aug 08 2003 - 21:34:01 MEST


Not a bug or a feature. Just a convenient tradition.

Rene Brun

On Fri, 8 Aug 2003, 
Aleksandr Tkachev wrote:

> Hi,
> 
> It looks like overflow bins in TH1 class have no effect on a calculation of 
> the mean value :
> 
> root [0] TH1F hist("test","test",10,0,10);
> root [1] hist->Fill(5.4);
> root [2] hist->Fill(15.5);
> root [3] hist->GetMean()
> (const Stat_t)5.40000000000000036e+00
> 
> Is it a bug or feature ?
> Thanks,
> Sasha.
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 



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