k.epan: Epanechnikov kernel

View source: R/RBF-fn.R

k.epanR 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)


RBF documentation built on Sept. 1, 2023, 1:07 a.m.