nndist.spp: Nearest neighbour distances

Description Usage Arguments Value Examples

Description

Computes the vector of great circle (geodesic) distances to nearest neighbour for the points in a point pattern on the sphere

Usage

1
2
## S3 method for class 'spp'
nndist(X, ...)

Arguments

X

object of class "spp".

...

ignored.

Value

Numeric of length n where n is the number of points in X.

Examples

1
2
X <- spp(pi*c(1/4,1/2,3/4), 2*pi*c(1/4,1/2,3/4), domain = sphere(type = "polar"))
nndist(X)

rubak/spatstatsphere documentation built on May 28, 2019, 9:56 a.m.