Skip to content

Commit

Permalink
Update interp.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
jaksle committed Feb 7, 2024
1 parent 9974b8c commit eac3b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pdf(ik::InterpKDE, M::AbstractArray{<:Real, N}) where N = pdf.(ik,eachslice(M, d

# 1 dimension
pdf(k::UnivariateKDE,x) = pdf(InterpKDE(k),x)
Base.broadcasted(::typeof(pdf),k::UnivariateKDE,xs) = Base.broadcasted(InterpKDE(k).itp, xs)
Base.Broadcast.broadcasted(::typeof(pdf),k::UnivariateKDE,xs) = Base.Broadcast.broadcasted(InterpKDE(k).itp, xs)

# 2 dimensions
pdf(k::BivariateKDE,x,y) = pdf(InterpKDE(k),x,y)
Expand Down

0 comments on commit eac3b90

Please sign in to comment.