powered by
Given an estimated kernel density this function estimates the density of a new vector.
dkernel(x, kernel = density(x), interpolate = FALSE, ...)
Denstiy of x in kernel.
x
kernel
vector of which the density should be estimated
object of class density
class
density
Interpolate or use density of nearest point?
currently not used.
Karsten Luebke, karsten.luebke@fom.de
density, NaiveBayes
NaiveBayes
kern <- density(rnorm(50)) x <- seq(-3, 3, len = 100) y <- dkernel(x, kern) plot(x, y, type = "l")
Run the code above in your browser using DataLab