Class HausdorffSimilarityMeasure
java.lang.Object
org.locationtech.jts.algorithm.match.HausdorffSimilarityMeasure
- All Implemented Interfaces:
SimilarityMeasure
Measures the degree of similarity between two
Geometry
s
using the Hausdorff distance metric.
The measure is normalized to lie in the range [0, 1].
Higher measures indicate a great degree of similarity.
The measure is computed by computing the Hausdorff distance between the input geometries, and then normalizing this by dividing it by the diagonal distance across the envelope of the combined geometries.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DENSIFY_FRACTION
private static final double DENSIFY_FRACTION- See Also:
-
-
Constructor Details
-
HausdorffSimilarityMeasure
public HausdorffSimilarityMeasure()
-
-
Method Details
-
measure
- Specified by:
measure
in interfaceSimilarityMeasure
-
diagonalSize
-