*.Kernel | R Documentation |
Operator overloading for kernel multiplication
## S3 method for class 'Kernel'
k1 * k2
k1 |
Kernel: The left kernel to use for composition |
k2 |
Kernel: The right kernel to use for composition |
A new KernelMulComposed
object.
# Create a new locally periodic kernel
k_loc_per <- KernelSE$new() * KernelPeriodic$new()
# Set the kernel's positions
positions_df <- data.frame(x=c(-4, 0, 3), y=c(-2, 0, 2))
k_loc_per$set_positions(positions_df)
# Generate the kernel's covariance matrix
k_loc_per$kernel_gen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.