Navigation Menu

Skip to content
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

Closed
yupbank opened this issue Aug 12, 2019 · 4 comments
Closed

Add cummedian for arrays. #14258

yupbank opened this issue Aug 12, 2019 · 4 comments

Comments

@yupbank
Copy link

yupbank commented Aug 12, 2019

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.

@psimaj
Copy link

psimaj commented Nov 27, 2019

@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?

@seberg
Copy link
Member

seberg commented Nov 27, 2019

@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.

@seberg seberg closed this as completed Nov 27, 2019
@rgommers
Copy link
Member

Agreed with @seberg, and apologies we didn't reply to this issue sooner.

Cumulative median or stream median is a very widely used feature in a lot of areas.

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

@yupbank
Copy link
Author

yupbank commented Nov 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants