Package tutorial.clustering
Enum NaiveAgglomerativeHierarchicalClustering3.Linkage
- java.lang.Object
-
- java.lang.Enum<NaiveAgglomerativeHierarchicalClustering3.Linkage>
-
- tutorial.clustering.NaiveAgglomerativeHierarchicalClustering3.Linkage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NaiveAgglomerativeHierarchicalClustering3.Linkage>
- Enclosing class:
- NaiveAgglomerativeHierarchicalClustering3<O>
public static enum NaiveAgglomerativeHierarchicalClustering3.Linkage extends java.lang.Enum<NaiveAgglomerativeHierarchicalClustering3.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 NaiveAgglomerativeHierarchicalClustering3.Linkage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NaiveAgglomerativeHierarchicalClustering3.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 NaiveAgglomerativeHierarchicalClustering3.Linkage SINGLE
-
COMPLETE
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage COMPLETE
-
GROUP_AVERAGE
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage GROUP_AVERAGE
-
WEIGHTED_AVERAGE
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage WEIGHTED_AVERAGE
-
CENTROID
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage CENTROID
-
MEDIAN
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage MEDIAN
-
WARD
public static final NaiveAgglomerativeHierarchicalClustering3.Linkage WARD
-
-
Method Detail
-
values
public static NaiveAgglomerativeHierarchicalClustering3.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 (NaiveAgglomerativeHierarchicalClustering3.Linkage c : NaiveAgglomerativeHierarchicalClustering3.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 NaiveAgglomerativeHierarchicalClustering3.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)
-
-