JuliaStats / KernelDensity.jl

Kernel density estimators for Julia
Other
175 stars 40 forks source link

deprecated code #62

Open afniedermayer opened 5 years ago

afniedermayer commented 5 years ago

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
tpapp commented 5 years ago

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