Computes the matrix of distances between all pairs of line segments in a line segment pattern.
A line segment pattern (object of class
String specifying which method of calculation to use.
Type of distance to be computed. Options are
This function computes the distance between each pair of
line segments in
X, and returns the matrix of distances.
This is a method for the generic function
for the class
The distances between line segments are measured in one of two ways:
type="Hausdorff", distances are computed
in the Hausdorff metric. The Hausdorff
distance between two line segments is the maximum distance
from any point on one of the segments to the nearest point on
the other segment.
type="separation", distances are computed
as the minimum distance from a point on one line segment to
a point on the other line segment. For example, line segments which
cross over each other have separation zero.
method is not normally used. It is
retained only for checking the validity of the software.
method = "interpreted" then the distances are
computed using interpreted R code only. If
(the default) then compiled
C code is used,
which is somewhat faster.
A square matrix whose
[i,j] entry is the distance
between the line segments numbered
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.