| KernelMatern | R Documentation |
R6 class for Matern Kernels
BKTR::Kernel -> KernelMatern
lengthscaleThe lengthscale parameter instance of the kernel
smoothness_factorThe smoothness factor of the kernel
has_dist_matrixIdentify if the kernel has a distance matrix or not
new()Create a new KernelMatern object.
KernelMatern$new( smoothness_factor = 5, lengthscale = KernelParameter$new(2), kernel_variance = 1, jitter_value = NULL )
smoothness_factorNumeric: The smoothness factor of the kernel (1, 3 or 5)
lengthscaleKernelParameter: The lengthscale parameter instance of the kernel
kernel_varianceNumeric: The variance of the kernel
jitter_valueNumeric: The jitter value to add to the kernel matrix
get_smoothness_kernel_fn()Method to the get the smoothness kernel function for a given integer smoothness factor
KernelMatern$get_smoothness_kernel_fn()
The smoothness kernel function
core_kernel_fn()Method to compute the core kernel's covariance matrix
KernelMatern$core_kernel_fn()
The core kernel's covariance matrix
clone()The objects of this class are cloneable with this method.
KernelMatern$clone(deep = FALSE)
deepWhether to make a deep clone.
# Create a new Matern 3/2 kernel
k_matern <- KernelMatern$new(smoothness_factor = 3)
# Set the kernel's positions
positions_df <- data.frame(x=c(-4, 0, 3), y=c(-2, 0, 2))
k_matern$set_positions(positions_df)
# Generate the kernel's covariance matrix
k_matern$kernel_gen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.