Class GeOxygeneFrechetMeasure

    • Constructor Detail

      • GeOxygeneFrechetMeasure

        public GeOxygeneFrechetMeasure()
    • Method Detail

      • toLineSegment

        public static fr.ign.cogit.geoxygene.api.spatial.coordgeom.ILineSegment toLineSegment​(Polygon poly)
        Convert polygon to ILineSegment
        Parameters:
        poly - Polygon
        Returns:
        ILineSegment out of the input poly
      • distance

        public static double distance​(Polygon X,
                                      Polygon Y,
                                      double threshold)
        Parameters:
        X - Polygon
        Y - Polygon
        threshold - distance threshold
        Returns:
        the GeOxygeneFrechet distance between X and Y
      • computeDistance

        public double computeDistance​(Polygon X,
                                      Polygon Y,
                                      double threshold)
      • getName

        public String getName()
        Description copied from interface: IMeasure
        Returns name of a measure.
        Returns:
        Measure name as a string
      • run

        public AMapping run​(Set<Polygon> source,
                            Set<Polygon> target,
                            double threshold)
        Computes the SetMeasure distance for a source and target set
        Parameters:
        source - Source polygons
        target - Target polygons
        threshold - Distance threshold
        Returns:
        Mapping from source to target resources
      • getType

        public String getType()
        Description copied from interface: IMeasure
        Returns type of a measure.
        Returns:
        The runtime of the measure
      • getSimilarity

        public double getSimilarity​(Instance instance1,
                                    Instance instance2,
                                    String property1,
                                    String property2)
        Description copied from interface: IMeasure
        Returns the similarity between two instances, given their corresponding properties.
        Parameters:
        instance1 - , the source instance
        instance2 - , the target instance
        property1 - , the source property
        property2 - , the target property
        Returns:
        The similarity of the instances
      • getRuntimeApproximation

        public double getRuntimeApproximation​(double mappingSize)
        Description copied from interface: IMeasure
        Returns the runtime approximation of a measure.
        Parameters:
        mappingSize - , the mapping size returned by the measure
        Returns:
        The runtime of the measure