Enum VotedPairs.VotingType
- java.lang.Object
-
- java.lang.Enum<VotedPairs.VotingType>
-
- adams.flow.transformer.wekaclassifiersetupprocessor.VotedPairs.VotingType
-
- All Implemented Interfaces:
Serializable
,Comparable<VotedPairs.VotingType>
- Enclosing class:
- VotedPairs
public static enum VotedPairs.VotingType extends Enum<VotedPairs.VotingType>
How the voting is done.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGE_RULE
MAJORITY_VOTING_RULE
MAX_RULE
MEDIAN_RULE
MIN_RULE
PRODUCT_RULE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.core.SelectedTag
getSelectedTag()
Returns the corresponding Vote selected tag.int
getType()
Returns the corresponding Vote type.static VotedPairs.VotingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static VotedPairs.VotingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVERAGE_RULE
public static final VotedPairs.VotingType AVERAGE_RULE
-
PRODUCT_RULE
public static final VotedPairs.VotingType PRODUCT_RULE
-
MAJORITY_VOTING_RULE
public static final VotedPairs.VotingType MAJORITY_VOTING_RULE
-
MIN_RULE
public static final VotedPairs.VotingType MIN_RULE
-
MAX_RULE
public static final VotedPairs.VotingType MAX_RULE
-
MEDIAN_RULE
public static final VotedPairs.VotingType MEDIAN_RULE
-
-
Method Detail
-
values
public static VotedPairs.VotingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VotedPairs.VotingType c : VotedPairs.VotingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VotedPairs.VotingType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
public int getType()
Returns the corresponding Vote type.- Returns:
- the type
-
getSelectedTag
public weka.core.SelectedTag getSelectedTag()
Returns the corresponding Vote selected tag.- Returns:
- the tag
-
-