pcf_directional: Directed pcf function

View source: R/pcf_directional.R

pcf_directionalR Documentation

Directed pcf function

Description

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

Usage

pcf_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 pcf_anin

cylindrical

If TRUE, compute the cylindrical version using pcf_anin_cylinder

Details

Compute the sector/cone/cylindrical pcf function. This version uses the more general anisotropic-inhomonogeneous pcf_anin_conical and pcf_anin_cylinder, by setting the intensity = constant. See there for further parameters, especially kernel smoothing options.

Value

Returns a dataframe.

Examples


x <- matrix(runif(300), ncol=2)
k <- pcf_directional(x)
plot(k, rmax = 0.1)


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