The non-broadcasting version does work for KernelDensity (pdf(y,[.5,.6])), however, for this kind of usage seems to be not recommended and deprecated, see e.g.
julia> pdf(N, [.5,.6])
┌ Warning: `pdf(d::UnivariateDistribution, X::AbstractArray)` is deprecated, use `pdf.(d, X)` instead.
│ caller = top-level scope at none:0
└ @ Core none:0
2-element Array{Float64,1}:
0.3520653267642995
0.33322460289179967
broadcast doesn't work for pdf calculation, see e.g.
This is in contrast to other calculations of pdfs, e.g.
The non-broadcasting version does work for KernelDensity (
pdf(y,[.5,.6])
), however, for this kind of usage seems to be not recommended and deprecated, see e.g.