public static enum HierarchicalShortHardAssigner.ScoringScheme extends Enum<HierarchicalShortHardAssigner.ScoringScheme>
HierarchicalShortHardAssigner.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 HierarchicalShortHardAssigner.ScoringScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HierarchicalShortHardAssigner.ScoringScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HierarchicalShortHardAssigner.ScoringScheme SUM
public static final HierarchicalShortHardAssigner.ScoringScheme PRODUCT
public static final HierarchicalShortHardAssigner.ScoringScheme FIRST
public static final HierarchicalShortHardAssigner.ScoringScheme LAST
public static final HierarchicalShortHardAssigner.ScoringScheme MEAN
public static HierarchicalShortHardAssigner.ScoringScheme[] values()
for (HierarchicalShortHardAssigner.ScoringScheme c : HierarchicalShortHardAssigner.ScoringScheme.values()) System.out.println(c);
public static HierarchicalShortHardAssigner.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)