kernel: Epanechnikov kernel

Description Usage Arguments Value References Examples

View source: R/kernel.R

Description

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

Usage

1
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

1
2
x = runif(10)
kernel(x)

SCEM documentation built on Sept. 5, 2021, 5:50 p.m.