Skip to content

Commit

Permalink
Deprecation warning from Distances.jl (#10)
Browse files Browse the repository at this point in the history
* Fixed deprecation warnings in Distances.jl

* Deprecation warning fixed for idw

* Deprecation fixes
  • Loading branch information
MrUrq authored and eljungsk committed Mar 6, 2019
1 parent 53d30ee commit e2e7e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/idw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ end
function evaluate(itp::ShepardInterpolant, points::AbstractArray{<:Real,2})

# Compute distances between sample points and interpolation points
d = pairwise(itp.metric, itp.points, points)
d = pairwise(itp.metric, itp.points, points;dims=2)

# Evaluate point by point
m = size(points, 2)
Expand Down
4 changes: 2 additions & 2 deletions src/rbf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function interpolate(rbf::Union{T, AbstractVector{T}} where T <: AbstractRadialB

# Compute pairwise distances, apply the Radial Basis Function
# and optional smoothing (ridge regression)
A = pairwise(metric, points)
A = pairwise(metric, points;dims=2)

evaluateRBF!(A, rbf, smooth)

Expand Down Expand Up @@ -281,7 +281,7 @@ end
function evaluate(itp::RadialBasisInterpolant, points::AbstractArray{<:Real, 2})

# Compute distance matrix and evaluate the RBF
A = pairwise(itp.metric, points, itp.points)
A = pairwise(itp.metric, points, itp.points;dims=2)
evaluateRBF!(A, itp.rbf)

# Compute polynomial matrix for generalized RBF:s
Expand Down

0 comments on commit e2e7e32

Please sign in to comment.