upsurface: Adapter for UP surface

Description Usage Arguments Value Examples

View source: R/algorithms.R

Description

A surrogate model ready to be used in a UP framework

Usage

1
upsurface(x, y, rs, upcontrol = NULL)

Arguments

x

design input

y

design output

rs

the surrogate model

upcontrol

list of resampling technique default NULL

Value

A surrogate model ready to be used in a UP framework

Examples

1
2
3
4
5
6
7
library(UP)
d            <- 2
X            <- expand.grid(x1=s <- seq(0,1, length=5), x2=s)
testdata     <- expand.grid(x1=s <- seq(0,1, length=10), x2=s)
Y            <- apply(X, 1, branin)
upsm         <- upsurface(x=X, y=Y, rs= krigingsm$new())
predictions  <- upsm$uppredict(testdata)

malekbs/UP documentation built on May 14, 2019, 8:05 a.m.