eval_type2_GASP {LinkedGASP} | R Documentation |
The second type of an emulator of a computer model
Description
This function evaluates the second GASP of a computer model within partial objective Bayesian (POB) implementation of the GASP.
Usage
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
## 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)
[Package LinkedGASP version 1.0 Index]