[Numpy-discussion] different percentile implementations ?

Pierre Haessig pierre.haessig at crans.org
Wed Mar 28 05:44:41 EDT 2012


Le 27/03/2012 18:56, josef.pktd at gmail.com a écrit :
> similar to std, var, histogram, ... some functions from scipy.stats
> are now in numpy.
Ok, historical reasons then. Fair enough.
Would a "See also: numpy.percentile" make sense in stats.scoreatpercentile ?
> However, in contrast to std, var, I think scoreatpercentile should be
> enhanced and not removed (similar to histogram), for example my
> attempt:
> http://projects.scipy.org/scipy/ticket/1329
>
I'm not sure I completely understood what was involved in your ticket.

The overall impression I felt is :
  * for a lot of statistical computations, it is not possible and/or
desirable to have the same code for "regular array" and for
"masked/nans/... arrays".
  * However, it would be possible to have the same api, that is : put
all the entry points in scipy.stats instead of having scipy.stats.mstats
as a separate api. Did I understand you correctly ?

Best,
Pierre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120328/46593ede/attachment.sig>


More information about the NumPy-Discussion mailing list