This is a method for the generic function pairdist
.
Given a multi-dimensional point pattern X
(an object of class "ppx"
),
this function computes the Euclidean distances between all pairs of
points in X
, and returns the matrix of distances.
By default, both spatial and temporal coordinates are extracted.
To obtain the spatial distance between points in a space-time point
pattern, set temporal=FALSE
.