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