[Numpy-tickets] [NumPy] #626: percentile() and clamp()
NumPy
numpy-tickets@scipy....
Fri Dec 7 17:19:13 CST 2007
#626: percentile() and clamp()
----------------------------+-----------------------------------------------
Reporter: connellybarnes | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0.5
Component: Other | Version: none
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
Two functions I am continually re-implementing in my own number-crunching
projects are percentile() and clamp(). Here percentile(array, p) returns
the pth percentile of array, using linear interpolation (p=0.5 is median,
p=1.0 is max, p=0.25 is lower quartile, etc). And clamp(array, lo, hi)
clamps to lower and upper bound scalars.
Would these functions be appropriate for numpy? Will you accept patches?
Thanks,
Connelly Barnes
connellybarnes at-symbol gmail dot com
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/626>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list