Description Usage Arguments Details Value Author(s) Examples
This function evaluates a Gaussian kernel.
1 | evaluateGaussianKernel(x, X, h)
|
x |
single value or vector of point to evaluate kernel at. |
X |
single value or vector of second point to evaluate kernel at. |
h |
single value or vector which relates to the effective radius of the kernel. |
$$\frac1\sqrt(2*\pi)\exp(\frac-\fracx-Xh^22$$
number or vector of evaluated points.
Lindesay Scott-Hayward
1 2 3 4 5 6 | x<-seq(1,10, length=100)
X<-5
h<-2
kern<-evaluateGaussianKernel(x, X, h)
plot(x, kern, type='l')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.