[SciPy-user] mean of arrays...

Gael Varoquaux gael.varoquaux at normalesup.org
Thu Sep 6 06:16:10 EDT 2007


On Thu, Sep 06, 2007 at 12:07:21PM +0200, fred wrote:
> I want to compute the element wise mean of 2D or 3D arrays (~100).

Stack all these n-arrays along an n+1 dimension, and use the numpy.mean
function, specifying the axis as n+1.

Gaël



More information about the SciPy-User mailing list