[Numpy-discussion] median object
keflavich
keflavich at gmail.com
Tue Jul 7 22:08:39 EDT 2009
Robert Kern-2 wrote:
>
> Mostly just history. Many, though certainly not all, single-argument
> functions from Numeric became ndarray methods. I believe that median
> was added after that event, and there is some resistance to adding yet
> another method to ndarray. The implementor of numpy.ma did not feel
> that way and found it easier to implement median as a method on masked
> arrays.
>
I don't think masked arrays have median methods either, but if you use
numpy.ma.median exclusively, it will work on both types.
Thanks for the pointer to generic, that's a more elegant solution in
general.
Adam
--
View this message in context: http://www.nabble.com/median-object-tp24364327p24384227.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.
More information about the NumPy-Discussion
mailing list