Ksph: A modification of the Ksphere function

Description Usage Arguments Details Value Author(s)

View source: R/Ksph.R

Description

Function that calculates the inhomogeneous K-functio as well as the lambdavalues required by spherstat

Usage

1
2
Ksph(X, r = NULL, rmax = NULL, nrval = 128, correction = "iso",
  intenss = NULL, ...)

Arguments

X

An object of class pps

r

Optional. Numeric vector of radii at which K(r) will be evaluated.

rmax

Optional. Maximum value of argument r for which Ksph(r) will be estimated.

nrval

Optional. Number of values of r for which Ksph(r) will be estimated.

correction

Character string or character vector specifying the choise of edge corrections.

intenss

Optional. A function or vector representing the intensity at the observed locations. Only applicable for inhomgeneous point processes.

...

Additional arguments passed to intenss if intenss is a function.

Details

This function has been implemented since Ksphere needs an argument lambdavalues when calculating the inhomogenious K-function. Hence, when applying the envelope function from spatstat we need to supply additional information for each point pattern for which K(r) should be calculated. That is at this point not possible. This function calculates the lambdavalues and the applies Ksphere. The lambdavalues are calculated based on the function FUN.

If X$window$type == "sphere" then no edge correction is done eventhough correction = "iso".

Value

An object as returned by Ksphere. An fv object.

Author(s)

Andreas Christoffersen andreas@math.aau.dk


adchSTATS/spatstatsphadd documentation built on May 28, 2019, 3:54 p.m.