Learn R Programming

palm (version 1.1.5)

sim.void: 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)

Value

A list. The first component gives the Cartesian coordinates of the generated points. The second component returns the parent locations.

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.

Examples

Run this code
## 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")

Run the code above in your browser using DataLab