Formula: K(x_i, x_j) = exp(-gamma * ||x_i - x_j||)
References
Montesinos Lopez, Montesinos Lopez and Crossa (2022), Multivariate Statistical Machine Learning Methods for Genomic Prediction, Springer, doi:10.1007/978-3-030-89010-0. Chapter 8, Sect. 8.2.2 p. 264: the book calls this the Exponential Kernel, K(x_i, x_j) = exp(-gamma ||x_i - x_j||), and notes it is close to the Gaussian kernel. NOTE: the placeholder this replaced was named for the Laplacian kernel; the book's display uses the Euclidean norm, not the L1 norm that the name Laplacian kernel usually implies, and the book's form is what is implemented. Read from the chapter PDF, not recalled.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
Expkern(V)
#> $K
#> [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 1.000000000 0.367879441 0.135335283 0.04978707 0.01831564 0.006737947
#> [2,] 0.367879441 1.000000000 0.367879441 0.13533528 0.04978707 0.018315639
#> [3,] 0.135335283 0.367879441 1.000000000 0.36787944 0.13533528 0.049787068
#> [4,] 0.049787068 0.135335283 0.367879441 1.00000000 0.36787944 0.135335283
#> [5,] 0.018315639 0.049787068 0.135335283 0.36787944 1.00000000 0.367879441
#> [6,] 0.006737947 0.018315639 0.049787068 0.13533528 0.36787944 1.000000000
#> [7,] 0.002478752 0.006737947 0.018315639 0.04978707 0.13533528 0.367879441
#> [8,] 0.000911882 0.002478752 0.006737947 0.01831564 0.04978707 0.135335283
#> [,7] [,8]
#> [1,] 0.002478752 0.000911882
#> [2,] 0.006737947 0.002478752
#> [3,] 0.018315639 0.006737947
#> [4,] 0.049787068 0.018315639
#> [5,] 0.135335283 0.049787068
#> [6,] 0.367879441 0.135335283
#> [7,] 1.000000000 0.367879441
#> [8,] 0.367879441 1.000000000
#>
#> $gamma
#> [1] 1
#>
#> $n
#> [1] 8
#>
#> $m
#> [1] 8
#>
#> $method
#> [1] "Exponential (Laplace) kernel, MVSML Sect. 8.2.2"
#>
#> attr(,"class")
#> [1] "morie_rich_result" "list"
