default.dummy(X, nd, random=FALSE, ntile=NULL, npix=NULL, quasi=FALSE, ..., eps=NULL, verbose=FALSE)
"ppp"
or in a format recognised by as.ppp()
nd * nd
or nd[1] * nd[2]
rectangular array of dummy points.
TRUE
, the dummy points are
generated randomly.
TRUE
, the dummy points are
generated by a quasirandom sequence.
nd
.
TRUE
, information about the construction of the
quadrature scheme is printed.
"ppp"
,
see ppp.object
) containing the dummy points.
A quadrature scheme consists of
the original data point pattern, an additional pattern of dummy points,
and a vector of quadrature weights for all these points.
See quad.object
for further information about
quadrature schemes.
If random
and quasi
are both false (the default),
then the function creates dummy points
in a regular nd[1]
by nd[1]
rectangular grid.
If random
is true and quasi
is false,
then the frame of the window is divided into
an nd[1]
by nd[1]
array of tiles, and one dummy point
is generated at random inside each tile.
If quasi
is true, a quasirandom pattern of
nd[1] * nd[2]
points is generated.
In all cases, the four corner points of the frame of the window
are added. Then if the window is not rectangular, any dummy points
lying outside it are deleted.
If nd
is missing,
a default value (depending on the
data pattern X
) is computed by default.ngrid
.
Alternative functions for creating dummy patterns
include corners
,
gridcentres
,
stratrand
and
spokes
.
quad.object
,
quadscheme
,
corners
,
gridcentres
,
stratrand
,
spokes
data(simdat)
P <- simdat
D <- default.dummy(P, 100)
## Not run: plot(D)
Q <- quadscheme(P, D, "grid")
## Not run: plot(union.quad(Q))
Run the code above in your browser using DataLab