public class HausdorffSimilarityMeasure extends Object implements SimilarityMeasure
Geometrys
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.
| Constructor and Description |
|---|
HausdorffSimilarityMeasure() |
| Modifier and Type | Method and Description |
|---|---|
static double |
diagonalSize(Envelope env) |
double |
measure(Geometry g1,
Geometry g2) |
public double measure(Geometry g1, Geometry g2)
measure in interface SimilarityMeasurepublic static double diagonalSize(Envelope env)
Copyright © 2018. All rights reserved.