Simulate Baddeley-Silverman Cell Process
Generates a random point pattern, a simulated realisation of the Baddeley-Silverman cell process model.
rcell(win=square(1), nx, ny=nx, dx=NULL, dy=NULL)
- A window.
An object of class
owin, or data in any format acceptable to
- Width of the cells. Incompatible with
- Height of the cells.
- Number of columns of cells in the window.
- Number of rows of cells in the window.
This function generates a simulated realisation of the
In the function
rcell the tile dimensions are determined
by the quantities
if they are present. If they are absent, then the grid spacing is
determined so that there will be
nx columns and
of tiles in the bounding rectangle of
The cell process is then generated in these tiles.
Some of the resulting random points may lie outside the window
if they do, they are deleted.
The result is a point pattern inside the window
- A point pattern (object of class
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.
X <- rcell(nx=15) plot(X) plot(Kest(X))