Evaluate a kernel function at point u
Usage
kernel_eval(u, kernel_type = KERNEL_GAUSSIAN)
Arguments
- u
Numeric evaluation point (scaled by bandwidth).
- kernel_type
Integer code or kernel name. One of
KERNEL_GAUSSIAN (0), KERNEL_EPANECHNIKOV (1),
KERNEL_UNIFORM (2), KERNEL_TRIANGULAR (3),
KERNEL_BIWEIGHT (4), or the matching string.
Value
Kernel density value K(u).