| KernelRQ | R Documentation |
R6 class for Rational Quadratic Kernels
BKTR::Kernel -> KernelRQ
lengthscaleThe lengthscale parameter instance of the kernel
alphaThe alpha parameter instance of the kernel
has_dist_matrixThe distance matrix between points in a tensor format
nameThe kernel's name
new()Create a new KernelRQ object.
KernelRQ$new( lengthscale = KernelParameter$new(2), alpha = KernelParameter$new(2), kernel_variance = 1, jitter_value = NULL )
lengthscaleKernelParameter: The lengthscale parameter instance of the kernel
alphaKernelParameter: The alpha parameter instance of the kernel
kernel_varianceNumeric: The variance of the kernel
jitter_valueNumeric: The jitter value to add to the kernel matrix
A new KernelRQ object.
core_kernel_fn()Method to compute the core kernel's covariance matrix
KernelRQ$core_kernel_fn()
The core kernel's covariance matrix
clone()The objects of this class are cloneable with this method.
KernelRQ$clone(deep = FALSE)
deepWhether to make a deep clone.
# Create a new RQ kernel
k_rq <- KernelRQ$new()
# Set the kernel's positions
positions_df <- data.frame(x=c(-4, 0, 3), y=c(-2, 0, 2))
k_rq$set_positions(positions_df)
# Generate the kernel's covariance matrix
k_rq$kernel_gen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.