continuous.sample {PrevMap} | R Documentation |
Spatially continuous sampling
Description
Draws a sample of spatial locations within a spatially continuous polygonal sampling region.
Usage
continuous.sample(poly, n, delta, k = 0, rho = NULL)
Arguments
poly |
boundary of a polygon. |
n |
number of events. |
delta |
minimum permissible distance between any two events in preliminary sample. |
k |
number of locations in preliminary sample to be replaced by near neighbours of other preliminary sample locations in final sample (must be between 0 and |
rho |
maximum distance between close pairs of locations in final sample. |
Details
To draw a sample of size n
from a spatially continuous region , with the property that the distance between any two sampled locations is at least
delta
, the following algorithm is used.
Step 1. Set
and generate a point
uniformly distributed on
.
Step 2. Increase
by 1, generate a point
uniformly distributed on
and calculate the minimum,
, of the distances from
to all
.
Step 3. If
, increase
by 1 and return to step 2 if
, otherwise stop;
Step 4. If
, return to step 2 without increasing
.
Sampling close pairs of points. For some purposes, it is desirable that a spatial sampling scheme include pairs of closely spaced points. In this case, the above algorithm requires the following additional steps to be taken.
Let k
be the required number of close pairs. Choose a value rho
such that a close pair of points will be a pair of points separated by a distance of at most rho
.
Step 5. Set
and draw a random sample of size 2 from the integers
, say
;
Step 6. Replace
by
, where
is uniformly distributed on the disc with centre
and radius
rho
, increaseby 1 and return to step 5 if
, otherwise stop.
Value
A matrix of dimension n
by 2 containing event locations.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Peter J. Diggle p.diggle@lancaster.ac.uk