[ROOT] TH1 overflow bins and a Mean value

From: Aleksandr Tkachev (tkachea@hotmail.com)
Date: Fri Aug 08 2003 - 18:32:22 MEST


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