-
Notifications
You must be signed in to change notification settings - Fork 193
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
Use dot-notation: quantile.(d, X) #586
base: master
Are you sure you want to change the base?
Conversation
See the pull request for code that calls iqr(), producing a warning from within StatsBase
As a fun side note, I had a lot of difficulty finding this line. I tried getting at it using using Distributions
methods(quantile, (UnivariateDistribution, AbstractArray))
The documentation for I’m not familiar enough with Julia’s development to ascertain where this additional bug should be reported, so I‘m attaching it here so I’m not the only soul who knows about it. I also wasn’t sure what package versions I’m using, so if those are needed, any guidance would be appreciated. |
Good catch. Can you also change
Yes, that's an unfortunate consequence of the fact that Statistics.jl has been moved to a separate repository. At some point the manual will probably be changed to point to the separate repository too. |
Sorry, I just realized that the current form is faster when the input is an array, as it sorts the data only once, while the proposed form would do it for each requested quantile. I think it would make sense to undeprecate that method in Distributions for consistency with Statistics. Can you file an issue there to discuss it? |
Broadcast only over probabilities (second argument), not collection (first argument) Co-authored-by: Milan Bouchet-Valat <[email protected]>
I’m not sure I completely understand. I get that the code has been separated out, while the docs have yet to be ported. But what used to be the case—did Statistics used to be under Distributions?
Yes, will do! Does that mean this PR should be closed? |
No. What used to be the case is that Statistics lived in the Julia repository.
We can keep it open for now. |
Needed by StatsBase.jl for arrays More info: JuliaStats/StatsBase.jl#586 (comment)
StatsBase.iqr()
callsDistributions.quantile()
.StatsBase.jl/src/scalarstats.jl
Line 340 in 54cc6fe
However, calling
iqr()
emits a warning, reproduced by the following code.The warning stems from a line in Distributions.