New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cummedian for arrays. #14258
Comments
@eric-wieser I'd be interested in implementing this feature. Is it something you'd like to see included in the project, or do you feel like it is redundant? |
@psimaj I think it is probably best if you start developing it outside of NumPy. SciPy may be a more likely candidate, or maybe already has it as a filter option? SciPy already has an N-D median filter, I am not sure about its performance, but improving that rather than adding something to NumPy would be better (if that is what you want). I will close this issue for now. We can reopen it (and please keep discussing!), but I do not think it is currently a good TODO item, since my gut feeling is that while common, it is probably better housed outside of NumPy. |
Agreed with @seberg, and apologies we didn't reply to this issue sooner.
I think it's the first time I've seen this requested. Where is it used a lot? And is it just median, or are other cumulative statistics of interest as well? There's an implementation here by the way: https://stackoverflow.com/questions/42765586/numpy-calculate-cumulative-median |
i had a cython implementation here https://github.com/yupbank/np_decision_tree/blob/master/decision_tree/np_stream_median.pyx |
Cumulative median or stream median is a very widely used feature in a lot of areas.
One of the efficient way to do so is to make min and max heap to save the data into two half.
While having a multiple dimension support is also very important.
The text was updated successfully, but these errors were encountered: