Compute Simulations of Khat

DESCRIPTION:

Computes Khat ( Lhat) for simulations of point processes. Returns upper and lower bounds, as well as the average of all simulated values.

USAGE:

Kenv(object, nsims=100, maxdist=<<see below>>, ndist=100, 
     process="binomial", boundary=bbox(object), add=T, ...) 
Lenv(object, nsims=100, maxdist=<<see below>>, ndist=100, 
     process="binomial", boundary=bbox(object), add=T, ...) 

REQUIRED ARGUMENTS:

object
an object of class "spp" representing a spatial point pattern, or a data frame or matrix with first two columns containing locations of a point pattern.

OPTIONAL ARGUMENTS:

nsims
integer. Number of desired simulations.
maxdist
numeric value indicating the maximum distance at which Khat (or Lhat) should be estimated. Defaults to half the length of a diagonal of the sample's bounding box.
ndist
desired number of default distances at which to compute Khat (or Lhat). Default is 100.
process
a character string with one of five possible processes for the spatial arrangement of the resulting pattern. This must be one of "binomial", "poisson", "cluster", "Strauss", or "SSI". See the help file for make.pattern for information on parameters for each process.
add
logical flag: should the envelope be added to an already existing plot of Khat (or Lhat for Lenv)? Defaults to TRUE.
...
other parameters as needed by the requested process.

VALUE:

invisibly returns a list with 4 numeric vectors each representing:
dist
the distances at which all values were computed.
lower
the minimum of all resulting Khat (or Lhat for Lenv) for the simulations.
upper
the maximum of all resulting Khat (or Lhat for Lenv) for the simulations.
average
the average of all resulting Khat (or Lhat for Lenv) for the simulations.

SIDE EFFECTS:

if add=TRUE an envelope is added to an existing plot of Khat.

SEE ALSO:

, , .

EXAMPLES:

Khat(bramble) 
Kenv(bramble,nsims=50) 
Lhat(lansing) 
Lenv(lansing,nsims=50)