Description Usage Arguments Value

Computes the Gaussian RBF kernel k(x,x') = exp(-|x-x'|^2/(2*sigma^2)).

1 | ```
gausskernel(x, sigma = 1, x2)
``` |

`x` |
Input matrix of covariates with samples in rows. |

`sigma` |
Bandwidth of the Gaussian RBF kernel. Default is 1. |

`x2` |
(Optional) a second matrix of covariates with samples in rows. |

If `x2`

is provided, returns the kernel matrix crossing samples
in `x`

and samples in `x2`

. If `x2`

is not provided, returns the kernel
Gram matrix of `x`

versus itself.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.