dkernel

0th

Percentile

Estimate density of a given kernel

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

Keywords
distribution, nonparametric
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.

See Also

density, NaiveBayes

Aliases
  • dkernel
Examples
# NOT RUN {
kern <- density(rnorm(50))
x <- seq(-3, 3, len = 100)
y <- dkernel(x, kern)
plot(x, y, type = "l")
# }
Documentation reproduced from package klaR, version 0.6-15, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.