## S3 method for class 'ppp':
density(x, sigma, \dots, weights, edge=TRUE)
"ppp"
) to be smoothed.as.mask
to determine
the pixel resolution.TRUE
, apply edge correction."im"
).density
.
A kernel estimate of the intensity function of the point pattern
is computed. The result is
the convolution of the isotropic Gaussian kernel of
standard deviation sigma
with point masses at each of the data
points. The default is to assign
a unit weight to each point.
If weights
is present, the point masses have these
weights (which may be signed real numbers). If 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.
ppp.object
,
im.object
data(cells)
Z <- density.ppp(cells, 0.05)
plot(Z)
Run the code above in your browser using DataLab