rjitter(X, radius, retry=TRUE, giveup = 10000, ..., nsim=1, drop=TRUE)
"ppp"
).
retry=FALSE
,
the point will be lost; if retry=TRUE
,
the algorithm will try again.
nsim=1
and drop=TRUE
(the default), the
result will be a point pattern, rather than a list
containing a point pattern.
"ppp"
)
if nsim=1
, or a list of point patterns if nsim > 1
,
in the same window as X
.
X
is subjected to
an independent random displacement. The displacement vectors are
uniformly distributed in a circle of radius radius
. If a displaced point lies outside the window, then if
retry=FALSE
the point will be lost.
However if retry=TRUE
, the algorithm will try again: each time a
perturbed point lies outside the window, the algorithm will reject it and
generate another proposed perturbation of the original point,
until one lies inside the window, or until giveup
unsuccessful
attempts have been made. In the latter case, any unresolved points
will be included without any perturbation. The return value will
always be a point pattern with the same number of points as X
.
X <- rsyst(owin(), 10, 10)
Y <- rjitter(X, 0.02)
plot(Y)
Z <- rjitter(X)
Run the code above in your browser using DataLab