gk | R Documentation |
gk
calculates the Gaussian similarity as the parallel distances between the elements of two vectors
gk(x1, x2, sigma = 1)
x1 |
the numbers in x1 that should be compared to those in x2 |
x2 |
the numbers in x2 that should be compared to those in x1 |
sigma |
parameter controlling the spread of the gaussian curve. The higher, the more tolerant we are are of differences. Defaults to 1. |
The Gaussian similarity is calculated as d(x_1, x_2) = e ^{ - \frac{\sqrt{(x_1 - x_2) ^ 2}}{\sigma^2}}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.