dkernel: Estimate density of a given kernel

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dkernel.R

Description

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

Usage

1
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, [email protected]

See Also

density, NaiveBayes

Examples

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

klaR documentation built on May 31, 2017, 1:53 a.m.

Related to dkernel in klaR...