Learn R Programming

KrigInv (version 1.3.1)

computeAuxVariables_update: Auxiliary variables in an update_km procedure

Description

Function similar to the computeAuxVariables of the DiceKriging package, with a quicker implementation.

Usage

computeAuxVariables_update(model)

Arguments

model

A Kriging model of km class.

Value

An updated km model

Details

This function was introduced to optimize the calculation time of some expensive to evaluate integral criteria.

See Also

computeAuxVariables

Examples

Run this code
# NOT RUN {
#computeAuxVariables_update

set.seed(8)
N <- 9 #number of observations
testfun <- branin

#a 9 points initial design
design <- data.frame( matrix(runif(2*N),ncol=2) )
response <- testfun(design)

#km object with matern3_2 covariance
#params estimated by ML from the observations
model <- km(formula=~., design = design, 
	response = response,covtype="matern3_2")

model2 <- computeAuxVariables_update(model)
#in this example model2 and model are the same!
# }

Run the code above in your browser using DataLab