java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.metric.resultsSimilarity.MatcherSimilarity

public class MatcherSimilarity extends Object
Resulting object of the MatcherSimilarityMetric calculation.
Author:
Jan Portisch
  • Field Details

  • Constructor Details

    • MatcherSimilarity

      public MatcherSimilarity()
      Constructor
  • Method Details

    • add

      void add(ExecutionResult executionResult_1, ExecutionResult executionResult_2, double similarity)
    • getMatcherSimilarity

      public double getMatcherSimilarity(ExecutionResult executionResult_1, ExecutionResult executionResult_2)
      Returns the matcher similarity between the two execution results.
      Parameters:
      executionResult_1 - The first execution results.
      executionResult_2 - The second execution result.
      Returns:
      Similarity as double.
    • getMatcherSimilaritySet

      public HashMap<ExecutionResultTuple,Double> getMatcherSimilaritySet()
    • getExecutionResultsAsList

      public ArrayList<ExecutionResult> getExecutionResultsAsList()
      Obtain all Execution results that are used in the matcherSimilaritySet as ArrayList.
      Returns:
      ArrayList with all execution results.
    • getMedianSimiarity

      public double getMedianSimiarity()
      Get the median similarity. Note that the median of the whole matrix is calculated including self-comparisons (matrix diagonal) such as sim(LogMap, Logmap).
      Returns:
      Median as double.
    • getMedianSimilariyWithoutSelfSimilarity

      public double getMedianSimilariyWithoutSelfSimilarity()
      Get the median similarity ignoring self-comparisons (i.e. the similarity betwen two matchers that are equal such as sim(LogMap, Logmap).
      Returns:
      Median as double.
    • median

      public static double median(List<Double> valueList)
      Given a list of double values, obtain the median value.
      Parameters:
      valueList - The list whose median shall be determined.
      Returns:
      Median value as double.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCoordinates

      public Map<ExecutionResult,Point2D.Double> getCoordinates()
      Get coordinates for visualizing the matcher distances in a 2D space. It uses multidimensional scaling for converting the distances to coordinates. This is based on OM-Poster: Is my ontology matching system similar to yours? - Ernesto Jimenez-Ruiz, Bernardo Cuenca Grau, Ian Horrocks.
      Returns:
      a map which maps an execution result to a coordinate.
      See Also:
    • shift

      private static double[] shift(double[] array)