Extending numpy statistics functions (like mean)
11 Apr
2011
11 Apr
'11
5:36 p.m.
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
4755
Age (days ago)
4756
Last active (days ago)
3 comments
4 participants
participants (4)
-
Bruce Southey
-
Keith Goodman
-
Sergio Pascual
-
Sergio Pascual