Class IndexedHausdorffMeasure

    • Constructor Detail

      • IndexedHausdorffMeasure

        public IndexedHausdorffMeasure()
        Initialization ensures that application fails if points were not indexed before distances are computed
    • Method Detail

      • getInnerDistances

        public Map<Point,​Map<Point,​Double>> getInnerDistances​(Polygon s)
        Parameters:
        s - Polygon
        Returns:
        Inner distances of s
      • 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
      • getSimilarity

        public double getSimilarity​(Object object1,
                                    Object object2)
        Description copied from interface: IMeasure
        Returns the similarity between two objects.
        Specified by:
        getSimilarity in interface IMeasure
        Overrides:
        getSimilarity in class APointsetsMeasure
        Parameters:
        object1 - , the source object
        object2 - , the target object
        Returns:
        The similarity of the objects
      • 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