Learn R Programming

rmargint (version 2.0.2)

k.epan: Epanechnikov kernel

Description

This function evaluates an Epanechnikov kernel

Usage

k.epan(x)

Value

A vector of the same length as x where each entry is 0.75 * (1 - x^2) if x < 1 and 0 otherwise.

Arguments

x

a vector of real numbers

Author

Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez

Details

This function evaluates an Epanechnikov kernel.

Examples

Run this code
x <- seq(-2, 2, length=10)
k.epan(x)

Run the code above in your browser using DataLab