Learn R Programming

kader (version 0.0.8)

epanechnikov: Epanechnikov kernel

Description

Vectorized evaluation of the Epanechnikov kernel.

Usage

epanechnikov(x)

Arguments

x

Numeric vector.

Value

A numeric vector of the Epanechnikov kernel evaluated at the values in x.

Examples

Run this code
# NOT RUN {
kader:::epanechnikov(x = c(-sqrt(6:5), -2:2, sqrt(5:6)))
# }
# NOT RUN {
curve(kader:::epanechnikov(x), from = -sqrt(6), to = sqrt(6))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab