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