Learn R Programming

dbmss (version 1.2.4)

Simulateg: Simulations of point patterns to obtain values of g under the null hypothesis

Description

This function is used internally by gEnvelope to fill the simulation matrix.

Usage

Simulateg(X, r, ReferenceType = "", NeighborType = "", SimulationType = "RandomPosition")

Arguments

X
A point pattern (ppp.object), marks must be a dataframe with two columns: PointType: labels, as factors. PointWeight: weights.
r
A vector of distances.
ReferenceType
One of the point types.
NeighborType
One of the point types.
SimulationType
A string describing the null hypothesis to simulate. The null hypothesis may be "RandomPosition": points are drawn in a Poisson process; "RandomLabeling": randomizes point types, keeping locations unchanged; "PopulationIndependence

Value

  • A vector containing simulated g(r) values.

See Also

gEnvelope