Class AreaSimilarityMeasure
- java.lang.Object
-
- org.locationtech.jts.algorithm.match.AreaSimilarityMeasure
-
- All Implemented Interfaces:
SimilarityMeasure
public class AreaSimilarityMeasure extends java.lang.Object implements SimilarityMeasure
Measures the degree of similarity between twoGeometry
s 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.NOTE: Currently experimental and incomplete.
- Author:
- mbdavis
-
-
Constructor Summary
Constructors Constructor Description AreaSimilarityMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
measure(Geometry g1, Geometry g2)
-
-
-
Method Detail
-
measure
public double measure(Geometry g1, Geometry g2)
- Specified by:
measure
in interfaceSimilarityMeasure
-
-