Re: [Numpy-discussion] Extending numpy statistics functions (like mean)

2011-04-12 Thread Bruce Southey
On 04/11/2011 05:03 PM, Keith Goodman wrote: > On Mon, Apr 11, 2011 at 2:36 PM, Sergio Pascual > wrote: >> 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 arg

Re: [Numpy-discussion] Extending numpy statistics functions (like mean)

2011-04-11 Thread Sergio Pascual
What I have is some C++ functions that implement statistic functions. What I need is some kind of ufunc where I can "plug" my functions. But I doesn't seem to exist an ufunc that operates on a N-d array and turns it into a number. 2011/4/12 Keith Goodman : > On Mon, Apr 11, 2011 at 2:36 PM, Sergio

Re: [Numpy-discussion] Extending numpy statistics functions (like mean)

2011-04-11 Thread Keith Goodman
On Mon, Apr 11, 2011 at 2:36 PM, Sergio Pascual wrote: > 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

[Numpy-discussion] Extending numpy statistics functions (like mean)

2011-04-11 Thread Sergio Pascual
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