From 5dbf210b2eadc6f333acc41885eb0570df3ab204 Mon Sep 17 00:00:00 2001 From: monty Date: Wed, 1 Apr 2020 10:19:23 -0600 Subject: [PATCH] minor --- src/Kriging.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Kriging.jl b/src/Kriging.jl index 7354949..9dae136 100644 --- a/src/Kriging.jl +++ b/src/Kriging.jl @@ -361,18 +361,17 @@ Returns: """ estimationerror function getgridpoints(xs::AbstractVector, ys::AbstractVector) - gridxyz = Array{Float64}(undef, 2, length(xs) * length(ys)) + gridxy = Array{Float64}(undef, 2, length(xs) * length(ys)) local i = 1 for x in xs for y in ys - gridxyz[1, i] = x - gridxyz[2, i] = y + gridxy[1, i] = x + gridxy[2, i] = y i += 1 end end - return gridxyz + return gridxy end - function getgridpoints(xs::AbstractVector, ys::AbstractVector, zs::AbstractVector) gridxyz = Array{Float64}(undef, 3, length(xs) * length(ys) * length(zs)) local i = 1