powered by
Discrete binomial kernel
discrete_binomial(x, z, h)
Returns the value of the associated kernel function according to the target x and the bandwidth h.
the target point at which the density is calculated
the vector of observations
the bandwidth (or smoothing parameter) which should match the condition 0<= h < 1
# Basic usage of discrete_binomial() to compute a Discrete Binomial Kernel discrete_binomial(x = 25, z = 1:50, h = 0.5)
Run the code above in your browser using DataLab