k.epan {rmargint} | R Documentation |
Epanechnikov kernel
Description
This function evaluates an Epanechnikov kernel
Usage
k.epan(x)
Arguments
x |
a vector of real numbers |
Details
This function evaluates an Epanechnikov kernel.
Value
A vector of the same length as x
where each entry is
0.75 * (1 - x^2)
if x < 1
and 0 otherwise.
Author(s)
Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez
Examples
x <- seq(-2, 2, length=10)
k.epan(x)
[Package rmargint version 2.0.3 Index]