nnangle.lpp: Nearest neighbor orientation

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/nnangle.lpp.R

Description

Calculates the angle to the nearest neighbor point over a linear network

Usage

1
nnangle.lpp(X, k = 1, degree = TRUE, directed = TRUE)

Arguments

X

an object of class lpp

k

The algorithm will find the angle towards the kth nearest neighbor

degree

logical. if TRUE, output is based on angles

directed

logical. if TRUE, the algorithm considers direction

Details

this function calculates the orientation to the kth nearest neighbor for each point

Value

a vector of angles

Author(s)

Mehdi Moradi m2.moradi@yahoo.com

References

Moradi, M., Mateu, J,. and Comas, C. (2020) Directional analysis for point patterns on linear networks. Stat.

See Also

nndist

Examples

1
2
3
# generate random relaisations
X <- rpoislpp(0.001,branchnet)
nnange <- nnangle.lpp(X)

Moradii/anisotropylpp documentation built on Oct. 22, 2020, 7:05 a.m.