sim.void: Simulating points from a void point process.

View source: R/fit-ns.r

sim.voidR 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 points.

parents

An optional matrix containing locations of parents. If this is provided, then the parameter D is not required in pars. If this is not provided, then parents are generated from a homogeneous Poisson point process with intensity Dp.

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")


b-steve/palm documentation built on Sept. 22, 2023, 9:27 a.m.