+.Kernel | R Documentation |
Operator overloading for kernel addition
## 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 KernelAddComposed
object.
# Create a new additive kernel
k_rq_plus_per <- KernelRQ$new() + KernelPeriodic$new()
# Set the kernel's positions
positions_df <- data.frame(x=c(-4, 0, 3), y=c(-2, 0, 2))
k_rq_plus_per$set_positions(positions_df)
# Generate the kernel's covariance matrix
k_rq_plus_per$kernel_gen()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.