Functions to compute an exponential kernel.
exponential_kernel(beta = 0.2, r0 = 0.05)
[numeric] The kernel's beta parameter.
[numeric] The kernel's r0 (exponential).
A matrix
corresponding to the kernel.
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