[SciPy-user] array mean issue...

Sebastian Stephan Berg se.berg@stud.uni-goettingen...
Wed Jun 11 06:55:59 CDT 2008


Hello,

This is an overflow problem in the way the mean is computed I believe --
it would start to add nothing after a while. In any case you can get the
correct/better result with b.mean(dtype='float64').
Maybe someone else can give some more info on why. Just to throw it in,
maybe a warning could be issued by checking something using
log2(size*mean) and float precision?

Sebastian



More information about the SciPy-user mailing list