[SciPy-user] mean of arrays...

Matthieu Brucher matthieu.brucher@gmail....
Thu Sep 6 09:04:02 CDT 2007


>
> As my arrays are set in a list (data), here's my solution:
>
> data_mean = array(data).transpose().mean(axis=-1).transpose()
>
> Thanks to all.
>

In that case, use axis = 0 instead of the transpositions.

Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070906/e229a323/attachment.html 


More information about the SciPy-user mailing list