Package de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.dispatchers.clustermerge
Enum ClusterDistance
java.lang.Object
java.lang.Enum<ClusterDistance>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.multisource.dispatchers.clustermerge.ClusterDistance
- All Implemented Interfaces:
Serializable
,Comparable<ClusterDistance>
,java.lang.constant.Constable
The distance measure to use for clustering.
A good default is to use euclidean.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEuclidean distance for double arrays.Manhattan distance for double arrays.Squared Euclidean distance. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterDistance
Returns the enum constant of this type with the specified name.static ClusterDistance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EUCLIDEAN
Euclidean distance for double arrays. -
SQUARED_EUCLIDEAN
Squared Euclidean distance. This results in the same rankings as regular Euclidean distance, but does not compute the square root (thus thus is a bit faster). -
MANHATTAN
Manhattan distance for double arrays.
-
-
Constructor Details
-
ClusterDistance
private ClusterDistance()
-
-
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
-