predict.kriging: Predict Kriging Model

View source: R/buildKrigingForrester.R

predict.krigingR Documentation

Predict Kriging Model

Description

Predict with Kriging model produced by buildKriging.

Usage

## S3 method for class 'kriging'
predict(object, newdata, ...)

Arguments

object

Kriging model (settings and parameters) of class kriging.

newdata

design matrix to be predicted

...

not used

Value

list with predicted mean y, uncertainty / standard deviation s (optional) and expected improvement ei (optional). Whether s and ei are returned is specified by the vector of strings object$target, which then contains "s" and "ei".

See Also

buildKriging

Examples


## Create design points
x <- cbind(runif(20)*15-5,runif(20)*15)
## Compute observations at design points (for Branin function)
y <- funBranin(x)
## Create model
fit <- buildKriging(x,y)
fit$target <- c("y","s","ei")
## first estimate error with regressive predictor
predict(fit,x)


SPOT documentation built on June 26, 2022, 1:06 a.m.