OrdKrig_optim_idw: Optimization function inverse distance weighting

Description Usage Arguments Value Author(s) Examples

Description

Optimization function performing 5-fold validation and returning RMSE of estimates for inverse distance weighting.

Usage

1
2
3
4
OrdKrig_optim_idw(par = c(idp = 2.0, maxdist=300, nmax=12, omax=3),
                  wpath = "/home/jbre/R/OrdKrig", 
                  datafile = "master/Masterfile_AdigeVenosta.txt",
                  variable = "Humus____")

Arguments

par

see optim or hydroPSO. For names of vector par see idw

wpath

see OrdKrig

datafile

path to and name of the data to optimize on

variable

see OrdKrig

Value

RMSE of local inverse distance weights estimations vs. observed data

Author(s)

Johannes Brenner, johannesbrenner@gmail.com

Examples

1
2
3
4
5
6
# do not run!

# hydroPSO::hydroPSO(fn = OrdKrig_optim_idw, method="spso2011",
#                    lower = c(1,100,8,1), upper = c(16,1000,100,25),
#                    control=list(drty.out = "/home/jbre/R/OrdKrig/PSO_idw", npart=40, 
#                                 parallel="none", par.pkgs = c("gstat","caret","hydroGOF","sp")))

JBrenn/SpatialInterpol documentation built on May 7, 2019, 7:39 a.m.