[Numpy-discussion] Extending numpy statistics functions (like mean)
Sergio Pascual
sergio.pasra at gmail.com
Mon Apr 11 17:36:52 EDT 2011
Hi list.
For mi application, I would like to implement some new statistics
functions over numpy arrays, such as truncated mean. Ideally this new
function should have the same arguments
than numpy.mean: axis, dtype and out. Is there a way of writing this
function that doesn't imply writing it in C from scratch?
I have read the documentation, but as far a I see ufuncs convert a N
dimensional array into another and generalized ufuncs require fixed
dimensions. numpy mean converts a N dimensional array either in a
number or a N - 1 dimensional array.
Regards, Sergio
More information about the NumPy-Discussion
mailing list