Enum SimInstanceMetric
java.lang.Object
java.lang.Enum<SimInstanceMetric>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.instancelevel.SimInstanceMetric
- All Implemented Interfaces:
Serializable
,Comparable<SimInstanceMetric>
,java.lang.constant.Constable
Similarity Metric which can be used for MatchClassBasedOnInstances
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionmatches two classes c1 and c2 if they share at least one already matches instance.Value is computed by 2 x overlapping instances / ( instances of class 1 + instances of class 2).Value is computed by overlapping instances / number of matched instances.Value is computed by overlapping instances / min(instances of class 1, instances of class 2). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimInstanceMetric
Returns the enum constant of this type with the specified name.static SimInstanceMetric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASE
matches two classes c1 and c2 if they share at least one already matches instance. Metric value is set to 1. -
DICE
Value is computed by 2 x overlapping instances / ( instances of class 1 + instances of class 2). It determines the instance overlap w.r.t. to both concepts. -
MIN
Value is computed by overlapping instances / min(instances of class 1, instances of class 2). It determines the relative instance overlap with respect to the smaller-sized concept. -
MATCH_BASED
Value is computed by overlapping instances / number of matched instances. This value also takes into account if the matcher does not match many instances.
-
-
Constructor Details
-
SimInstanceMetric
private SimInstanceMetric()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-