kernel.squint | R Documentation |
Computes the integral of the squared kernel, for the kernels used in density estimation for numerical data.
kernel.squint(kernel = "gaussian", bw=1)
kernel |
String name of the kernel.
Options are
|
bw |
Bandwidth (standard deviation) of the kernel. |
Kernel estimation of a probability density in one dimension
is performed by density.default
using a kernel function selected from the list above.
This function computes the integral of the squared kernel,
R = \int_{-\infty}^{\infty} k(x)^2 \, {\rm d}x
where k(x)
is the kernel with bandwidth bw
.
A single number.
and Martin Hazelton
density.default
,
dkernel
,
kernel.moment
,
kernel.factor
kernel.squint("gaussian", 3)
# integral of squared Epanechnikov kernel with half-width h=1
h <- 1
bw <- h/kernel.factor("epa")
kernel.squint("epa", bw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.