Skip to contents

We use translation edge correction if we have an axis-oriented bounding box. Otherwise minus-correction.

Usage

Kest_directional(x, u, epsilon, r, ..., cylindrical = FALSE)

Arguments

x

pp, spatstat's ppp-object, or a coordinate matrix, or a list with $x~coordinates $bbox~bounding box

u

unit direction(s), if many then one direction per row.

epsilon

Central angle for the directed cone (total angle is 2 epsilon)

r

radius vector at which to evaluate K

...

Passed on to Kest_anin

cylindrical

If TRUE, compute the cylindrical version using Kest_anin_cylinder

Value

Returns a dataframe.

Details

Compute the sector/cone/cylindrical K function. This version uses the more general anisotropic-inhomonogeneous Kest_anin and Kest_anin_cylinder, by setting the intensity = constant.

Examples


x <- matrix(runif(200), ncol=2)
k <- Kest_directional(x)
plot(k, rmax = 0.1)