KernelWhiteNoise | R Documentation |
R6 class for White Noise Kernels
BKTR::Kernel
-> KernelWhiteNoise
has_dist_matrix
Identify if the kernel has a distance matrix or not
name
The kernel's name
new()
KernelWhiteNoise$new(kernel_variance = 1, jitter_value = NULL)
kernel_variance
Numeric: The variance of the kernel
jitter_value
Numeric: The jitter value to add to the kernel matrix
A new KernelWhiteNoise
object.
core_kernel_fn()
Method to compute the core kernel's covariance matrix
KernelWhiteNoise$core_kernel_fn()
The core kernel's covariance matrix
clone()
The objects of this class are cloneable with this method.
KernelWhiteNoise$clone(deep = FALSE)
deep
Whether to make a deep clone.
# Create a new white noise kernel
k_white_noise <- KernelWhiteNoise$new()
# Set the kernel's positions
positions_df <- data.frame(x=c(-4, 0, 3), y=c(-2, 0, 2))
k_white_noise$set_positions(positions_df)
# Generate the kernel's covariance matrix
k_white_noise$kernel_gen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.