OrdKrig_optim_krige: Optimization function local ordinary kriging

Description Usage Arguments Value References Examples

Description

Optimization function performing 5-fold validation and returning RMSE of estimates for local ordinary kriging.

Usage

1
2
3
4
5
OrdKrig_optim_krige(par = c(cutoff=300, anis_deg=0, anis_ax=.5, nmax=12, omax=3, nugget=1),
                            wpath = "/home/jbre/R/OrdKrig", 
                            datafile = "raw/Masterfile_Adige.txt",
                            variable = "Humus____",
                            model="Sph", kfold=5)

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

model

see fit.variogram

kfold

see createFolds

Value

RMSE of local ordinary kriging estimations vs. observed data

References

Johannes Brenner, [email protected]

Examples

1
2
3
4
5
6
# do not run!

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

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