pairdist(X, ...)
[i,j]
entry is the distance
between the `things' numbered i
and j
.
X
and Y
(representing either a point pattern or
a line segment pattern)
pairdist
computes the distance between each pair of
`things' in the dataset, and returns
a matrix containing these distances. The function pairdist
is generic, with
methods for point patterns (objects of class "ppp"
),
line segment patterns (objects of class "psp"
)
and a default method. See the documentation
for pairdist.ppp
, pairdist.psp
or pairdist.default
for details.
pairdist.ppp
,
pairdist.psp
,
pairdist.default
,
crossdist
,
nndist
,
Kest