Skip to contents

Kernel product

Usage

# S3 method for class 'GauPro_kernel'
k1 * k2

Arguments

k1

First kernel

k2

Second kernel

Value

Kernel which is product of two kernels

Examples

k1 <- Exponential$new(beta=1)
k2 <- Matern32$new(beta=0)
k <- k1 * k2
k$k(matrix(c(2,1), ncol=1))
#>            [,1]       [,2]
#> [1,] 1.00000000 0.02046016
#> [2,] 0.02046016 1.00000000