public static enum HierarchicalIntHardAssigner.ScoringScheme extends Enum<HierarchicalIntHardAssigner.ScoringScheme>
HierarchicalIntHardAssigner.ScoringScheme
determines how the distance
to a cluster is estimated from the hierarchy of k-means
generated clusters.Enum Constant and Description |
---|
FIRST
The distance in the root cluster
|
LAST
The distance in the leaf cluster
|
MEAN
The mean distance down the tree
|
PRODUCT
Product of distances down the tree.
|
SUM
Sum distances down the tree.
|
Modifier and Type | Method and Description |
---|---|
protected abstract float |
computeScore(float[] weights) |
static HierarchicalIntHardAssigner.ScoringScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HierarchicalIntHardAssigner.ScoringScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HierarchicalIntHardAssigner.ScoringScheme SUM
public static final HierarchicalIntHardAssigner.ScoringScheme PRODUCT
public static final HierarchicalIntHardAssigner.ScoringScheme FIRST
public static final HierarchicalIntHardAssigner.ScoringScheme LAST
public static final HierarchicalIntHardAssigner.ScoringScheme MEAN
public static HierarchicalIntHardAssigner.ScoringScheme[] values()
for (HierarchicalIntHardAssigner.ScoringScheme c : HierarchicalIntHardAssigner.ScoringScheme.values()) System.out.println(c);
public static HierarchicalIntHardAssigner.ScoringScheme valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract float computeScore(float[] weights)