Computes the distances between pairs of `things' taken from two different datasets.
crossdist(X, Y, ...)
- Two objects of the same class.
- Additional arguments depending on the method.
Given two datasets
(representing either two point patterns or
two line segment patterns)
crossdist computes the Euclidean distance from each thing
in the first dataset to each thing in the second dataset,
and returns a matrix containing these distances.
crossdist is generic, with
methods for point patterns (objects of class
line segment patterns (objects of class
and a default method. See the documentation for
crossdist.default for further details.
- A matrix whose
[i,j]entry is the distance from the
i-th thing in the first dataset to the
j-th thing in the second dataset.