eval_type2_GASP: The second type of an emulator of a computer model

Description Usage Arguments Details Value Author(s) Examples

Description

This function evaluates the second GASP of a computer model within partial objective Bayesian (POB) implementation of the GASP.

Usage

1
eval_type2_GASP(input, GASPparams)

Arguments

input

input values (the same dimension as training input data in the next argument GASPparams)

GASPparams

The output of the function eval_GASP_RFP.

Details

See examples which illustrate inputs specification to the function.

Value

Function returns a list of three objects

x

Inputs.

mu

Mean of an emulator.

var

Covariance matrix of an emulator.

Author(s)

Ksenia N. Kyzyurova, kseniak.ucoz.net.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Function f2 is a simulator
f2<-function(x){cos(5*x)}

## One-dimensional inputs x2
x2 = seq(-0.95,0.95,length = 6)
data.f2 <- list(training = x2,fD = f2(x2), smooth = 2)

## Evaluation of GASP parameters
f2_MLEs = eval_GASP_RFP(data.f2,list(function(x){x^0},function(x){x^1}),1,FALSE)

## Evaluation of a second type GASP emulator
GASP_type2_f2 <- eval_type2_GASP(as.matrix(seq(-1,1,.01)),f2_MLEs)

LinkedGASP documentation built on May 2, 2019, 2:08 a.m.