Generates the covariance matrix for the Gaussian kernel or Matern kernel
cov_gen(
x1,
x2 = NULL,
t1,
t2 = NULL,
phi1sq,
phi2sq,
sigma1sq,
sigma2sq,
H,
l = 4,
covtype,
iso,
nugget = sqrt(.Machine$double.eps)
)a matrix of size (nrow(x1), nrow(x2)), or (nrow(x1), nrow(x1))
if x2 and t2 are NULL.
Design input location matrices. x2 is to be used only to
create cross-covariance matrix.
Design tunable parameter vectors. t2 is to be used only
to create cross-covariance matrix.
hyper-parameters for the covariance function
kernel function used: "Gaussian" is the only available
one at the moment.
If TRUE, then the covariance function is isotropic.
If FALSE, the covariance function is anisotropic.
optional