# RBF kernel
ker <- function(x, l, sigf) {
rbf <- kernlab::rbfdot(sigma = 1/l)
return(sigf * kernlab::kernelMatrix(rbf, x = x))
}
ker2 <- function(x, y, l, sigf) {
rbf <- kernlab::rbfdot(sigma = 1/l)
return(sigf * kernlab::kernelMatrix(rbf, x = x, y = y))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.