[Numpy-discussion] Adding "weights" option to quantile/percentile

2022-03-10 Thread Chun-Wei Yuan
Dear all, I have a long-standing PR (#9211 ) about adding a "weights" option to the quantile/percentile methods' API. The code is tested for all 13 different interpolation methods, and I welcome any additional testing suggestions. A couple of remarks:

Re: [Numpy-discussion] [JOB] Principal Software Engineer position at IHME

2019-09-09 Thread Chun-Wei Yuan
I see. Sorry. I think I misinterpreted "It is okay to post job ads for work involving NumPy/SciPy and related packages if you put [JOB] in the subject". Thanks for the clarification. On Mon, Sep 9, 2019 at 3:19 PM Ralf Gommers wrote: > > > On Mon, Sep 9, 2019 at 2:

[Numpy-discussion] [JOB] Principal Software Engineer position at IHME

2019-09-09 Thread Chun-Wei Yuan
*The Institute for Health Metrics and Evaluation (IHME) *has an outstanding opportunity for a full-time *Principal Software Engineer *on our Forecasting/Future Health Scenarios (FHS) team*.* The development arm of the team is responsible for the design and implementation of software to support

[Numpy-discussion] PR to add "weights" option to np.quantile

2018-09-13 Thread Chun-Wei Yuan
Hi all, I have a long-standing PR to add a "weights" option to np.quantile/percentile: https://github.com/numpy/numpy/pull/9211 For a little background, there are quite a few ways to define "quantile" to begin with. Numpy defines it the same way as R's default (Type 7):

Re: [Numpy-discussion] quantile() or percentile()

2017-08-03 Thread Chun-Wei Yuan
Any way I can help expedite this? On Fri, Jul 21, 2017 at 4:42 PM, Chun-Wei Yuan <chunwei.y...@gmail.com> wrote: > That would be great. I just used np.argsort because it was familiar to > me. Didn't know about the C code. > > On Fri, Jul 21, 2017 at 3:43 PM, Jos

Re: [Numpy-discussion] quantile() or percentile()

2017-07-21 Thread Chun-Wei Yuan
it performs an O(nlogn) sort of the array. It is possible to reduce > the time to O(n) by using a similar partitioning algorithm to the one in > the C code of percentile. I will look into it as soon as I can. > > -Joe > > On Fri, Jul 21, 2017 at 5:34 PM, Chun-Wei Yuan &l

Re: [Numpy-discussion] quantile() or percentile()

2017-07-21 Thread Chun-Wei Yuan
; possibility. I have had this change on the back-burner for a long time, > mainly because I was too lazy to figure out how to include it in the C > code. However, I will take a closer look. > > Regards, > > -Joe > > > > On Fri, Jul 21, 2017 at 5:11 PM, Chun-Wei

[Numpy-discussion] quantile() or percentile()

2017-07-21 Thread Chun-Wei Yuan
There's an ongoing effort to introduce quantile() into numpy. You'd use it just like percentile(), but would input your q value in probability space (0.5 for 50%): https://github.com/numpy/numpy/pull/9213 Since there's a great deal of overlap between these two functions, we'd like to solicit