Learn R Programming

statoo (version 0.1.3)

kernel_properties: Smoothing kernels

Description

The generic function kernelfun creates a smoothing kernel function.

Usage

kernel_properties(name, derivative = FALSE)
kernelfun(name, ...)
"kernelfun"(name, ...)
"kernelfun"(name, derivative = FALSE, ...)
.kernelsList()

Arguments

name
character. The name of the kernel to be used. Authorized kernels are listed in .kernelsList().
derivative
logical. If TRUE, the derivative of the kernel is returned.
...
Additional arguments to be passed to the kernel function.

Value

A function.

See Also

density in package stats.

Examples

Run this code
kernel_properties("gaussian")

k <- kernelfun("epanechnikov")
curve(k(x), xlim = c(-1, 1))

Run the code above in your browser using DataLab