Kernel Smoothed Intensity of Point Pattern
Compute a kernel smoothed intensity function from a point pattern.
## S3 method for class 'ppp': density(x, sigma, \dots, weights, edge=TRUE)
- Point pattern (object of class
"ppp") to be smoothed.
- Standard deviation of isotropic Gaussian smoothing kernel.
- Optional vector of weights to be attached to the points. May include negative values.
- Arguments passed to
as.maskto determine the pixel resolution.
- Logical flag: if
TRUE, apply edge correction.
This is a method for the generic function
A kernel estimate of the intensity function of the point pattern
is computed. The result is
the convolution of the isotropic Gaussian kernel of
sigma with point masses at each of the data
points. The default is to assign
a unit weight to each point.
weights is present, the point masses have these
weights (which may be signed real numbers).
edge=TRUE, the intensity estimate is corrected for
edge effect bias by dividing it by the convolution of the
Gaussian kernel with the window of observation.
Computation is performed using the Fast Fourier Transform.
- A pixel image (object of class
## S3 method for class 'ppp': density(x, sigma, \dots, edge=TRUE)
data(cells) Z <- density.ppp(cells, 0.05) plot(Z)