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