Class AreaSimilarityMeasure
Measures the degree of similarity between two Geometrys using the area of intersection between the geometries. The measure is normalized to lie in the range [0, 1]. Higher measures indicate a great degree of similarity.
Implements
Inherited Members
Namespace: NetTopologySuite.Algorithm.Match
Assembly: NetTopologySuite.dll
Syntax
public class AreaSimilarityMeasure : ISimilarityMeasure
Remarks
NOTE: Currently experimental and incomplete.
Methods
| Edit this page View SourceMeasure(Geometry, Geometry)
Computes the similarity measure between two geometries
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 value of the similarity measure, in [0.0, 1.0]. |