KernelDensity.jl icon indicating copy to clipboard operation
KernelDensity.jl copied to clipboard

deprecated code

Open afniedermayer opened this issue 5 years ago • 1 comments

some of the code seems to use deprecated commands, I get these warnings:

julia> using KernelDensity

julia> data=randn(1000);

julia> y=kde(data);

julia> pdf(y,.5)
┌ Warning: interpolate(A, BSpline(Quadratic(Line())), Interpolations.OnGrid()) is deprecated, use interpolate(A, BSpline(Quadratic(Line(Interpolations.OnGrid()))))
│   caller = Type at interp.jl:11 [inlined]
└ @ Core C:\Users\andras\AppData\Local\JuliaPro-1.0.1.1\pkgs-1.0.1.1\packages\KernelDensity\JfNeR\src\interp.jl:11
┌ Warning: `getindex(itp::AbstractInterpolation{T, N}, i::Vararg{Number, N}) where {T, N}` is deprecated, use `itp(i...)` instead.
│   caller = pdf at interp.jl:25 [inlined]
└ @ Core C:\Users\andras\AppData\Local\JuliaPro-1.0.1.1\pkgs-1.0.1.1\packages\KernelDensity\JfNeR\src\interp.jl:25
0.3531142839535672

afniedermayer avatar Oct 26 '18 18:10 afniedermayer

I can not reproduce this, with

(v1) pkg> st KernelDensity
    Status `~/.julia/environments/v1/Project.toml`
  [31c24e10] Distributions v0.16.4
  [a98d9a8b] Interpolations v0.11.2
  [5ab0869b] KernelDensity v0.5.1
  [429524aa] Optim v0.17.2
  [2913bbd2] StatsBase v0.27.0

tpapp avatar Feb 08 '19 10:02 tpapp