Description Usage Arguments Details Value
Kernel function with bandwidth
1 2 3 4 5 | compute_kernel(
x,
type = c("Gaussian", "Epanechinikov", "Tricube", "Boxcar"),
h
)
|
x |
point where the kernel function is evaluated |
type |
which kernel to use? |
h |
bandwidth |
Gaussian kernel function.
K_h(x) = \frac{1}{√{2π h}} \exp( - \frac{x^2}{2h})
Kernel function value given x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.