sharpen(X, ...)
## S3 method for class 'ppp':
sharpen(X, sigma=NULL, ..., varcov=NULL,
edgecorrect=FALSE)
"ppp"
).sigma
.density.ppp
to control the pixel resolution of the result."ppp"
) in the same window
as the original pattern X
, and with the same marks as X
. The function sharpen
is generic. It currently has only one
method, for two-dimensional point patterns (objects of class
"ppp"
).
If sigma
is given, the smoothing kernel is the
isotropic two-dimensional Gaussian density with standard deviation
sigma
in each axis. If varcov
is given, the smoothing
kernel is the Gaussian density with variance-covariance matrix
varcov
.
The data sharpening procedure tends to cause the point pattern
to contract away from the boundary of the window. That is,
points X_i
{X[i]} that lie `quite close to the edge of the window
of the point pattern tend to be displaced inward.
If edgecorrect=TRUE
then the algorithm is modified to
correct this vector bias.
density.ppp
,
smooth.ppp
.data(shapley)
X <- unmark(shapley)
if(!(interactive())) X <- rthin(X, 0.05)
Y <- sharpen(X, sigma=0.5)
Run the code above in your browser using DataLab