sim.void {palm} | R Documentation |
Simulating points from a void point process.
Description
Generates points from a void point process using parameters provided by the user.
Usage
sim.void(pars, lims, parents = NULL)
Arguments
pars |
A named vector containing the values of the parameters of the process that generates the points. |
lims |
A matrix or list of matrices with two columns,
corresponding to the upper and lower limits of each dimension,
respectively. If a list, then each matrix provides the limits
for the corresponding pattern in |
parents |
An optional matrix containing locations of
parents. If this is provided, then the parameter |
Details
For a list of possible parameter names, see fit.ns.
Value
A list. The first component gives the Cartesian coordinates of the generated points. The second component returns the parent locations.
Examples
## Two-dimensional void process.
void.data <- sim.void(c(Dc = 1000, Dp = 10, tau = 0.05), rbind(c(0, 1), c(0, 1)))
## Plotting the data.
plot(void.data$points)
points(void.data$parents, pch = 16, col = "red")