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