View source: R/discrete_epanech.r
discrete_epanech | R Documentation |
Discrete Epanechnikov kernel
discrete_epanech(x, z, h)
x |
the target point at which the density is calculated |
z |
the vector of observations |
h |
the bandwidth (or smoothing parameter) |
Returns the value of the associated kernel function according to the target x and the bandwidth h.
# Basic usage of discrete_epanech() to compute a discrete Epanechnikov kernel
discrete_epanech(x = 25, z = 1:50, h = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.