CGGPplotcorr {CGGP}R Documentation

Plot correlation samples

Description

Plot samples for a given correlation function and parameters. Useful for getting an idea of what the correlation parameters mean in terms of smoothness.

Usage

CGGPplotcorr(
  Corr = CGGP_internal_CorrMatGaussian,
  theta = NULL,
  numlines = 20,
  outdims = NULL,
  zero = TRUE
)

Arguments

Corr

Correlation function or CGGP object. If CGGP object, it will make plots for thetaMAP, the max a posteriori theta.

theta

Parameters for Corr

numlines

Number of sample paths to draw

outdims

Which output dimensions should be used?

zero

Should the sample paths start at y=0?

Value

Plot

See Also

Other CGGP plot functions: CGGPplotblocks(), CGGPplotheat(), CGGPplothist(), CGGPplotsamplesneglogpost(), CGGPplotslice(), CGGPplottheta(), CGGPplotvariogram(), CGGPvalplot()

Examples


CGGPplotcorr()
CGGPplotcorr(theta=c(-2,-1,0,1))

SG <- CGGPcreate(d=3, batchsize=100)
f <- function(x){x[1]^1.2+sin(2*pi*x[2]*3)}
y <- apply(SG$design, 1, f)
SG <- CGGPfit(SG, Y=y)
CGGPplotcorr(SG)


[Package CGGP version 1.0.3 Index]