Class MatcherSimilarity
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.metric.resultsSimilarity.MatcherSimilarity
Resulting object of the
MatcherSimilarityMetric
calculation.- Author:
- Jan Portisch
-
Field Summary
Modifier and TypeFieldDescriptionprivate HashMap<ExecutionResultTuple,
Double> Data structure holding the matcher similarity result. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(ExecutionResult executionResult_1, ExecutionResult executionResult_2, double similarity) Get coordinates for visualizing the matcher distances in a 2D space.Obtain all Execution results that are used in thematcherSimilaritySet
as ArrayList.double
getMatcherSimilarity
(ExecutionResult executionResult_1, ExecutionResult executionResult_2) Returns the matcher similarity between the two execution results.double
Get the median similarity.double
Get the median similarity ignoring self-comparisons (i.e.static double
Given a list of double values, obtain the median value.private static double[]
shift
(double[] array) toString()
-
Field Details
-
matcherSimilaritySet
Data structure holding the matcher similarity result.
-
-
Constructor Details
-
MatcherSimilarity
public MatcherSimilarity()Constructor
-
-
Method Details
-
add
-
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
-
getExecutionResultsAsList
Obtain all Execution results that are used in thematcherSimilaritySet
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
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
-
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)
-