Package tutorial.clustering
Enum NaiveAgglomerativeHierarchicalClustering4.Linkage
- java.lang.Object
-
- java.lang.Enum<NaiveAgglomerativeHierarchicalClustering4.Linkage>
-
- tutorial.clustering.NaiveAgglomerativeHierarchicalClustering4.Linkage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NaiveAgglomerativeHierarchicalClustering4.Linkage>
- Enclosing class:
- NaiveAgglomerativeHierarchicalClustering4<O>
public static enum NaiveAgglomerativeHierarchicalClustering4.Linkage extends java.lang.Enum<NaiveAgglomerativeHierarchicalClustering4.Linkage>
Different linkage strategies.The update formulas here come from:
R. M. Cormack, A Review of Classification- Author:
- Erich Schubert
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTROID
COMPLETE
GROUP_AVERAGE
MEDIAN
SINGLE
WARD
WEIGHTED_AVERAGE
-
Constructor Summary
Constructors Modifier Constructor Description private
Linkage()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
combine(int sizex, double dx, int sizey, double dy, int sizej, double dxy)
static NaiveAgglomerativeHierarchicalClustering4.Linkage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NaiveAgglomerativeHierarchicalClustering4.Linkage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage SINGLE
-
COMPLETE
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage COMPLETE
-
GROUP_AVERAGE
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage GROUP_AVERAGE
-
WEIGHTED_AVERAGE
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage WEIGHTED_AVERAGE
-
CENTROID
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage CENTROID
-
MEDIAN
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage MEDIAN
-
WARD
public static final NaiveAgglomerativeHierarchicalClustering4.Linkage WARD
-
-
Method Detail
-
values
public static NaiveAgglomerativeHierarchicalClustering4.Linkage[] 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 (NaiveAgglomerativeHierarchicalClustering4.Linkage c : NaiveAgglomerativeHierarchicalClustering4.Linkage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NaiveAgglomerativeHierarchicalClustering4.Linkage valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
combine
public abstract double combine(int sizex, double dx, int sizey, double dy, int sizej, double dxy)
-
-