Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dkernel

Estimate density of a given kernel


Description

Given an estimated kernel density this function estimates the density of a new vector.

Usage

dkernel(x, kernel = density(x), interpolate = FALSE, ...)

Arguments

x

vector of which the density should be estimated

kernel

object of class density

interpolate

Interpolate or use density of nearest point?

...

currently not used.

Value

Denstiy of x in kernel.

Author(s)

Karsten Luebke, karsten.luebke@fom.de

See Also

Examples

kern <- density(rnorm(50))
x <- seq(-3, 3, len = 100)
y <- dkernel(x, kern)
plot(x, y, type = "l")

klaR

Classification and Visualization

v0.6-15
GPL-2 | GPL-3
Authors
Christian Roever, Nils Raabe, Karsten Luebke, Uwe Ligges, Gero Szepannek, Marc Zentgraf, David Meyer
Initial release
2020-02-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.