Search Results for

    Show / Hide Table of Contents

    Class FrechetSimilarityMeasure

    Measures the degree of similarity between two Geometrys using the Fréchet 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 Fréchet distance between the input geometries, and then normalizing this by dividing it by the diagonal distance across the envelope of the combined geometries.

    Note: the input should be normalized, especially when measuring MultiPoint geometries because for the Fréchet distance the order of {@link Coordinate}s is important.
    Inheritance
    object
    FrechetSimilarityMeasure
    Implements
    ISimilarityMeasure
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm.Match
    Assembly: NetTopologySuite.dll
    Syntax
    public class FrechetSimilarityMeasure : ISimilarityMeasure

    Constructors

    | Edit this page View Source

    FrechetSimilarityMeasure()

    Creates an instance of this class

    Declaration
    public FrechetSimilarityMeasure()

    Methods

    | Edit this page View Source

    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

    Implements

    ISimilarityMeasure
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX