[SciPy-user] Vector mean calculation?

Fernando.Perez at colorado.edu Fernando.Perez at colorado.edu
Thu Apr 21 19:41:43 CDT 2005

Quoting Thomas Davidoff <davidoff at haas.berkeley.edu>:

> I have a vector with min equal to 412.  Why am I getting a negative mean?

Without more details, it's quite difficult to be sure.  Most likely, because
it's very long and of integer type (ints are 32 bit objects, so you are
effectively doing mod 2^31 arithmetic with negative wraparound).



More information about the SciPy-user mailing list