bo09_toy: Two-Input Toy Model from Bastos and O'Hagan (2009)

Description Usage Arguments Value References Examples

View source: R/bastos_ohagan_09.R

Description

A toy model for the demonstration of Gaussian process validation plots and statistics. It is a product of a rational function in x[1] and an exponential function in x[2]. The function is smoother in x[2] than x[1]. The function's domain is the unit square.

Usage

1

Arguments

x

A vector of length 2.

Value

A scalar.

References

Bastos, L. S., & O'Hagan, A. (2009). Diagnostics for gaussian process emulators. Technometrics, 51(4), 425–438, <doi:10.1198/TECH.2009.08019>.

Examples

1
2
3
4
5
6
7
print(bo09_toy(c(0.5,0.25)))

n <- 100
a <- seq(0,1,length.out = n)
x <- expand.grid(a,a)
z <- matrix(apply(x,1,bo09_toy),n,n)
graphics::contour(a,a,z, xlab = expression(x[1]), ylab = expression(x[2]))

GADGET documentation built on Jan. 25, 2020, 1:06 a.m.