Learn R Programming

SCEM (version 1.1.0)

kernel: Epanechnikov kernel

Description

Calculates the value of the Epanechnikov kernel function for any vector.

Usage

kernel(v)

Arguments

v

A vector of real numbers.

Value

A vector of the calculated kernel values for the input vector.

References

Epanechnikov, V. A. (1969). Non-parametric estimation of a multivariate probability density. Theory of Probability and its Applications, 14(1), 153-6.

Examples

Run this code
# NOT RUN {
x = runif(10)
kernel(x)

# }

Run the code above in your browser using DataLab