discrete_epanech {kernopt}R 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)


[Package kernopt version 1.0.0 Index]