Skip to content

Commit

Permalink
inv
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Jul 15, 2020
1 parent 8e69162 commit b3825dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Kriging"
uuid = "6133562b-a8e8-5ea3-954b-37642b766dad"
version = "0.6.1"
version = "0.6.2"

[deps]
DocumentFunction = "e1f3b4f0-2dc4-57d3-83f7-d4b7faf3b05b"
Expand Down
2 changes: 1 addition & 1 deletion src/Kriging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function inversedistance(x0mat::AbstractMatrix, X::AbstractMatrix, Z::AbstractVe
weights = Array{Float64}(undef, size(X, 2))
for i = 1:size(x0mat, 2)
for j = 1:size(X, 2)
weights[j] = 1. / distance(x0mat[:, i], X[:, j]) ^ pow
weights[j] = inv.(distance(x0mat[:, i], X[:, j]) ^ pow)
end
result[i] = LinearAlgebra.dot(weights, Z) / sum(weights)
end
Expand Down

0 comments on commit b3825dc

Please sign in to comment.