Skip to content
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

deprecated code #62

Open
afniedermayer opened this issue Oct 26, 2018 · 1 comment
Open

deprecated code #62

afniedermayer opened this issue Oct 26, 2018 · 1 comment

Comments

@afniedermayer
Copy link

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
Copy link
Collaborator

tpapp commented Feb 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants