Skip to content

Commit

Permalink
Update to use broadcasting per warnings (#773)
Browse files Browse the repository at this point in the history
┌ Warning: `quantile(d::UnivariateDistribution, X::AbstractArray)` is deprecated, use `quantile.(d, X)` instead.
│   caller = top-level scope at none:0
└ @ Cor
  • Loading branch information
aaron-jesse-ol authored and matbesancon committed Sep 19, 2018
1 parent 64585ef commit 77aee52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/starting.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ julia> x = rand(d, 100)
You can easily obtain the pdf, cdf, percentile, and many other functions for a distribution. For instance, the median (50th percentile) and the 95th percentile for the standard-normal distribution are given by:

```julia
julia> quantile(Normal(), [0.5, 0.95])
julia> quantile.(Normal(), [0.5, 0.95])
2-element Array{Float64,1}:
0.0
1.64485
Expand Down

0 comments on commit 77aee52

Please sign in to comment.