kernel.factor

0th

Percentile

Scale factor for density kernel

Returns a scale factor for the kernels used in density estimation for numerical data.

Keywords
methods, smooth, nonparametric
Usage
kernel.factor(kernel = "gaussian")
Arguments
kernel

String name of the kernel. Options are "gaussian", "rectangular", "triangular", "epanechnikov", "biweight", "cosine" and "optcosine". (Partial matching is used).

Details

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 a scale constant for the kernel. For the Gaussian kernel, this constant is equal to 1. Otherwise, the constant $c$ is such that the kernel with standard deviation $1$ is supported on the interval $[-c,c]$.

For more information about these kernels, see density.default.

Value

A single number.

density.default, dkernel, kernel.moment, kernel.squint

Aliases
• kernel.factor
Examples
# NOT RUN {
kernel.factor("rect")
# bandwidth for Epanechnikov kernel with half-width h=1
h <- 1
bw <- h/kernel.factor("epa")
# }

Documentation reproduced from package spatstat, version 1.61-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.