discrete_epanech: Discrete Epanechnikov kernel

View source: R/discrete_epanech.r

discrete_epanechR Documentation

Discrete Epanechnikov kernel

Description

Discrete Epanechnikov kernel

Usage

discrete_epanech(x, z, h)

Arguments

x

the target point at which the density is calculated

z

the vector of observations

h

the bandwidth (or smoothing parameter)

Value

Returns the value of the associated kernel function according to the target x and the bandwidth h.

Examples

# Basic usage of discrete_epanech() to compute a discrete Epanechnikov kernel
discrete_epanech(x = 25, z = 1:50, h = 20)


kernopt documentation built on April 3, 2025, 9:34 p.m.