public static enum NearestNeighborClassifier.VoteType extends java.lang.Enum<NearestNeighborClassifier.VoteType>
| Enum Constant and Description |
|---|
MAJORITY
Majority vote with @see NearestNeighborClassifier#voteMajority.
|
WEIGHTED_PROPORTIONAL_TO_DISTANCE
Weighted proportional to distance vote with @see NearestNeighborClassifier#voteWeightedProportionalToDistance.
|
WEIGHTED_STEPWISE
Weighted stepwise vote with @see NearestNeighborClassifier#voteWeightedStepwise.
|
| Modifier and Type | Method and Description |
|---|---|
static NearestNeighborClassifier.VoteType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NearestNeighborClassifier.VoteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NearestNeighborClassifier.VoteType MAJORITY
public static final NearestNeighborClassifier.VoteType WEIGHTED_STEPWISE
public static final NearestNeighborClassifier.VoteType WEIGHTED_PROPORTIONAL_TO_DISTANCE
public static NearestNeighborClassifier.VoteType[] values()
for (NearestNeighborClassifier.VoteType c : NearestNeighborClassifier.VoteType.values()) System.out.println(c);
public static NearestNeighborClassifier.VoteType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null