[SciPy-user] Mean / std type conversion ?

Stef Mientki s.mientki@ru...
Thu May 22 15:29:18 CDT 2008


hello,

The following lines 1,2 don't work as I expect,
lines 3,4 works correctly...

        print numpy.mean ( data, 0, dtype = int )
        print numpy.std  ( data, 0, int )
        print numpy.mean ( data, 0 ).astype ( int )
        print numpy.std  ( data, 0 ).astype ( int )

Am I doing something wrong (numpy 1.0.4) ?

Another question,
isn't there a function that computes both mean and std ?

thanks,
Stef Mientki




More information about the SciPy-user mailing list