*.Kernel {BKTR} | R Documentation |
Operator overloading for kernel multiplication
Description
Operator overloading for kernel multiplication
Usage
## S3 method for class 'Kernel'
k1 * k2
Arguments
k1 |
Kernel: The left kernel to use for composition |
k2 |
Kernel: The right kernel to use for composition |
Value
A new KernelMulComposed
object.
Examples
# 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()
[Package BKTR version 0.1.1 Index]