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

RFC: added method for quantile(v::AbstractArray, ...) #31026

Closed

Conversation

heliosdrm
Copy link
Contributor

@heliosdrm
Copy link
Contributor Author

heliosdrm commented Feb 10, 2019

A more generic alternative would be changing the method un line 916 by:

quantile(itr, p; sorted::Bool=false) = quantile!(vec(collect(itr)), p, sorted=sorted)

But the current proposal is more performant for AbstractArray specifically, because no copy is made.

Copy link
Member

@nalimilan nalimilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, and welcome!

@IanButterworth
Copy link
Sponsor Member

Seems like a good idea but I'm closing as Statistics is now an external stdlib repo.
Here's a new issue over there to not forget this JuliaStats/Statistics.jl#130

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

Successfully merging this pull request may close these issues.

3 participants