Last chance! 50% off unlimited learning
Sale ends in
Generates a random point pattern, a simulated realisation of the Baddeley-Silverman cell process model.
rcell(win=square(1), nx=NULL, ny=nx, …, dx=NULL, dy=dx,
N=10, nsim=1, drop=TRUE)
Number of columns of cells in the window.
Incompatible with dx
.
Number of rows of cells in the window.
Incompatible with dy
.
Ignored.
Width of the cells. Incompatible with nx
.
Height of the cells.
Incompatible with ny
.
Integer. Distributional parameter:
the maximum number of random points in each cell.
Passed to rcellnumber
.
Number of simulated realisations to be generated.
Logical. If nsim=1
and drop=TRUE
(the default), the
result will be a point pattern, rather than a list
containing a point pattern.
A point pattern (an object of class "ppp"
)
if nsim=1
, or a list of point patterns if nsim > 1
.
This function generates a simulated realisation of the “cell process”
(Baddeley and Silverman, 1984), a random point process
with the same second-order properties as the uniform Poisson process.
In particular, the
A cell process is generated by dividing space into equal rectangular
tiles. In each tile, a random number of random points is placed.
By default, there are either
The tile width is determined
either by the number of columns nx
or by the
horizontal spacing dx
.
The tile height is determined
either by the number of rows ny
or by the
vertical spacing dy
.
The cell process is then generated in these tiles.
The random numbers of points are generated by rcellnumber
.
Some of the resulting random points may lie outside the window win
:
if they do, they are deleted.
The result is a point pattern inside the window win
.
Baddeley, A.J. and Silverman, B.W. (1984) A cautionary example on the use of second-order methods for analyzing point patterns. Biometrics 40, 1089-1094.
# NOT RUN {
X <- rcell(nx=15)
plot(X)
plot(Kest(X))
# }
Run the code above in your browser using DataLab