Class NaiveHausdorffMeasure

    • Field Detail

      • computations

        public int computations
    • Constructor Detail

      • NaiveHausdorffMeasure

        public NaiveHausdorffMeasure()
        Constructor
    • Method Detail

      • distance

        public static double distance​(Polygon X,
                                      Polygon Y,
                                      double threshold)
      • 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