Functions to compute an exponential kernel.

exponential_kernel(beta = 0.2, r0 = 0.05)

Arguments

beta

[numeric] The kernel's beta parameter.

r0

[numeric] The kernel's r0 (exponential).

Value

A matrix corresponding to the kernel.

Examples


exponential_kernel(beta = 2, r0 = 0.7)
#>           [,1]      [,2]      [,3]
#> [1,] 0.0000000 0.1353353 0.0000000
#> [2,] 0.1353353 1.0000000 0.1353353
#> [3,] 0.0000000 0.1353353 0.0000000