Class HausdorffSimilarityMeasure
Measures the degree of similarity between two Geometrys using the Hausdorff distance metric.
Implements
Inherited Members
Namespace: NetTopologySuite.Algorithm.Match
Assembly: NetTopologySuite.dll
Syntax
public class HausdorffSimilarityMeasure : ISimilarityMeasure
Remarks
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.
Methods
| Edit this page View SourceDiagonalSize(Envelope)
Declaration
public static double DiagonalSize(Envelope env)
Parameters
| Type | Name | Description |
|---|---|---|
| Envelope | env |
Returns
| Type | Description |
|---|---|
| double |
Measure(Geometry, Geometry)
Function to measure the similarity between two Geometrys.
Declaration
public double Measure(Geometry g1, Geometry g2)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | g1 | A geometry |
| Geometry | g2 | A geometry |
Returns
| Type | Description |
|---|---|
| double | The similarity value between two Geometrys |