Kernel | R Documentation |
Abstract base class for kernels (Should not be instantiated)
kernel_variance
The variance of the kernel
jitter_value
The jitter value to add to the kernel matrix
distance_matrix
The distance matrix between points in a tensor format
name
The kernel's name
parameters
The parameters of the kernel (list of KernelParameter
)
covariance_matrix
The covariance matrix of the kernel in a tensor format
positions_df
The positions of the points in a dataframe format
has_dist_matrix
Identify if the kernel has a distance matrix or not
new()
Kernel abstract base constructor
Kernel$new(kernel_variance, jitter_value)
kernel_variance
Numeric: The variance of the kernel
jitter_value
Numeric: The jitter value to add to the kernel matrix
A new Kernel
object.
core_kernel_fn()
Abstract method to compute the core kernel's covariance matrix
Kernel$core_kernel_fn()
add_jitter_to_kernel()
Method to add jitter to the kernel's covariance matrix
Kernel$add_jitter_to_kernel()
kernel_gen()
Method to compute the kernel's covariance matrix
Kernel$kernel_gen()
set_positions()
Method to set the kernel's positions and compute the distance matrix
Kernel$set_positions(positions_df)
positions_df
Dataframe: The positions of the points in a dataframe format
plot()
Method to plot the kernel's covariance matrix
Kernel$plot(show_figure = TRUE)
show_figure
Boolean: If TRUE, the figure is shown, otherwise it is returned
If show_figure
is TRUE, the figure is shown, otherwise it is returned
clone()
The objects of this class are cloneable with this method.
Kernel$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.