cov_mat | R Documentation |
Used internally, estimates covariance matrices used by the Gaussian process
optimisation function. Calculates pairwise absolute distances raised to a
power (which defaults to 2
) using the pow_abs_dist()
function, divides
the result by a lengthscale
hyperparameter (which defaults to 1
, i.e., no
changes due to division), and subsequently returns the inverse exponentiation
of the resulting matrix.
cov_mat(x1, x2 = x1, g = NULL, pow = 2, lengthscale = 1)
x1 |
numeric vector, with length corresponding to the number of rows in the returned matrix. |
x2 |
numeric vector, with length corresponding to the number of columns
in the returned matrix. If not specified, |
g |
single numerical value; jitter/nugget value added to the diagonal
if not |
pow |
single numeric value, the power that all distances are raised to.
Defaults to |
lengthscale |
single numerical value; lengthscale hyperparameter that
the matrix returned from |
Covariance matrix with length(x1)
rows and length(x2)
columns
used by the Gaussian process optimiser.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.