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

percentile function in Ndarray #547

Open
tachukao opened this issue Sep 22, 2020 · 0 comments
Open

percentile function in Ndarray #547

tachukao opened this issue Sep 22, 2020 · 0 comments
Labels
enhancement R&D Core research and development

Comments

@tachukao
Copy link
Member

It will be useful to have a percentile function in Ndarray and Matrix with the signature

val percentile : ?keep_dims:bool -> axis:int -> pct:float -> Arr.arr -> Arr.arr

This shouldn't be too difficult to implement with the sort1 function already in Ndarray.

With this function implemented we can also easily add functions like quantile and median.

@ryanrhymes ryanrhymes added enhancement R&D Core research and development labels Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement R&D Core research and development
Projects
None yet
Development

No branches or pull requests

2 participants