Kest_directional: Directed K function

View source: R/Kest_directional.R

Kest_directionalR Documentation

Directed K function

Description

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

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.

Value

Returns a dataframe.

Examples


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


antiphon/Kdirectional documentation built on Feb. 13, 2023, 6:26 a.m.