TGASP_plot: T-GASP plot

Description Usage Arguments Details Value Note Author(s) Examples

Description

Function allows to plot the TGASP in case of one-dimensional input. Black-and-white version.

Usage

1

Arguments

tem

TGasP emulator.

fun

Simulator function.

data

Training data and smoothness. The same as supplied to eval_GASP_RFP(...) for construction of a GASP.

labels

As in standard R plot.

ylim

As in standard R plot.

points

(Not) to plot the training points.

Details

See examples.

Value

Plot

Note

The function requires further development to be automated for visualization along a single dimension out of multiple dimensions and along two dimensions out of multiple dimensions.

This function needs to be automated to allow for fast visualization of a single emualtor (with no comparison to the actual simulator function), etc.

Author(s)

Ksenia N. Kyzyurova, kseniak.ucoz.net

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Function f1 is a simulator
f1<-function(x){sin(pi*x)}

## One-dimensional inputs are x1
x1 <- seq(-1,1,.37)

## The following contains the list of data inputs (training) and outputs (fD) together with 
## the assumed fixed smoothness of a computer model output.
data.f1 <- list(training = x1,fD = f1(x1), smooth = 1.99)

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

## Evaluate the emulator
xn = seq(-1,1,.01)
TGASP_f1 <- eval_TGASP(as.matrix(xn),f1_MLEs)

## Plot the emulator
par(mfrow = c(1,1))
par(mar = c(6.1, 6.1, 5.1, 2.1))
ylim = c(-1.5,1.5)
TGASP_plot(TGASP_f1,f1,data.f1,ylim = ylim)

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