pairdist.spp: Pairwise distances

Description Usage Arguments Value Examples

Description

Computes the matrix of great circle (geodesic) distances between all pairs of points in a point pattern on the sphere

Usage

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

Arguments

X

object of class "spp".

...

ignored.

Value

Symmetric square matrix where the (i,j)'th entry is the great circle (geodesic) distance between points i and j.

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"))
pairdist(X)

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