powered by
The generic function kernelfun creates a smoothing kernel function.
kernelfun
kernel_properties(name, derivative = FALSE)kernelfun(name, ...)# S3 method for `function` kernelfun(name, ...)# S3 method for character kernelfun(name, derivative = FALSE, ...).kernelsList()
kernelfun(name, ...)
# S3 method for `function` kernelfun(name, ...)
# S3 method for character kernelfun(name, derivative = FALSE, ...)
.kernelsList()
character. The name of the kernel to be used. Authorized kernels are listed in .kernelsList().
logical. If TRUE, the derivative of the kernel is returned.
TRUE
Additional arguments to be passed to the kernel function.
A function.
density in package stats.
density
# NOT RUN { kernel_properties("gaussian") k <- kernelfun("epanechnikov") curve(k(x), xlim = c(-1, 1)) # }
Run the code above in your browser using DataLab