procope.methods.clustering
Enum HierarchicalLinkage

java.lang.Object
  extended by java.lang.Enum<HierarchicalLinkage>
      extended by procope.methods.clustering.HierarchicalLinkage
All Implemented Interfaces:
Serializable, Comparable<HierarchicalLinkage>

public enum HierarchicalLinkage
extends Enum<HierarchicalLinkage>

Linkage methods for hierarchical agglomerative clustering

Author:
Jan Krumsiek

Enum Constant Summary
COMPLETE_LINK
          Complete linkage clustering, the similarity of two clusters is defined as the minimum similarity between any two members of the clusters
SINGLE_LINK
          Single linkage clustering, the similarity of two clusters is defined as the maximum similarty between any two members of the clusters
UPGMA
          Unweighted pair group method with averaging, the similarity of two clusters is defined as the average similarity between all members of both clusters
WPGMA
          Weighted pair group method with averaging, the similarity of a merged cluster (a,b) to a cluster c is defined as the arithmetic mean of a and b to c.
 
Method Summary
static HierarchicalLinkage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HierarchicalLinkage[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SINGLE_LINK

public static final HierarchicalLinkage SINGLE_LINK
Single linkage clustering, the similarity of two clusters is defined as the maximum similarty between any two members of the clusters


COMPLETE_LINK

public static final HierarchicalLinkage COMPLETE_LINK
Complete linkage clustering, the similarity of two clusters is defined as the minimum similarity between any two members of the clusters


WPGMA

public static final HierarchicalLinkage WPGMA
Weighted pair group method with averaging, the similarity of a merged cluster (a,b) to a cluster c is defined as the arithmetic mean of a and b to c.


UPGMA

public static final HierarchicalLinkage UPGMA
Unweighted pair group method with averaging, the similarity of two clusters is defined as the average similarity between all members of both clusters

Method Detail

values

public static HierarchicalLinkage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (HierarchicalLinkage c : HierarchicalLinkage.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HierarchicalLinkage valueOf(String name)
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 name
NullPointerException - if the argument is null