plotUP1D: Post Processing and plot of the prediction and the UP...

Description Usage Arguments Value Examples

View source: R/UtilFunc.R

Description

Post Processing and plot of the prediction and the UP variance of a 1 dimension functions.

Usage

1
plotUP1D(xverif, uppred, x = NULL, y = NULL)

Arguments

xverif

verification points in 1 dimension.

uppred

UP prediction of xverif.

x

design points inputs.

y

design points outputs.

Value

Plot the predictions.

Examples

1
2
3
4
5
6
7
8
9
library(UP)
x           <- as.matrix(c(-2.6,-0.2, 1.7,-1.4,1.2,3))
y           <- c(0.8, 0.5, 0.1, 0.3, 0, 0.4)
xverif      <- seq(-3, 3, length.out =300)
krig        <- krigingsm$new()
resampling  <- UPClass$new(x, y, Scale =TRUE) 
upsm        <- UPSM$new(sm= krig, UP= resampling) 
prediction  <- upsm$uppredict(xverif)
plotUP1D(xverif, prediction, x, y)

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