Plot a covariance matrix
Arguments
- x
GPCov
object containing the covariance matrix- xa
numeric
vector used to generatex
- type
character
denoting whether to plot samples from the GP prior ("prior"
) assuming a mean vector of zero, or to draw a heatmap of the covariance matrix ("matrix"
). Defaults to"prior"
- k
integer
denoting number of realisations to draw iftype = "prior"
. Defaults to5
- ...
arguments to be passed to methods
Examples
x1 <- 1:100
covmat <- cov_exp_quad(x1, x1, 0.05, 1)
plot(covmat, x1, type = "prior", k = 5)