Package adams.flow.sink
Enum WekaThresholdCurve.AttributeName
- java.lang.Object
-
- java.lang.Enum<WekaThresholdCurve.AttributeName>
-
- adams.flow.sink.WekaThresholdCurve.AttributeName
-
- All Implemented Interfaces:
adams.core.EnumWithCustomDisplay<WekaThresholdCurve.AttributeName>
,adams.core.EnumWithCustomParsing<WekaThresholdCurve.AttributeName>
,Serializable
,Comparable<WekaThresholdCurve.AttributeName>
- Enclosing class:
- WekaThresholdCurve
public static enum WekaThresholdCurve.AttributeName extends Enum<WekaThresholdCurve.AttributeName> implements adams.core.EnumWithCustomDisplay<WekaThresholdCurve.AttributeName>
The type of the fields.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
ThresholdCurve
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WekaThresholdCurve.AttributeName
parse(String s)
Parses the given string and returns the associated enum.String
toDisplay()
Returns the display string.String
toRaw()
Returns the raw enum string.String
toString()
Returns the display string.static String
toString(adams.core.option.AbstractOption option, Object object)
Returns the enum as string.static WekaThresholdCurve.AttributeName
valueOf(adams.core.option.AbstractOption option, String str)
Returns an enum generated from the string.static WekaThresholdCurve.AttributeName
valueOf(String name)
Returns the enum constant of this type with the specified name.static WekaThresholdCurve.AttributeName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUE_POS
public static final WekaThresholdCurve.AttributeName TRUE_POS
-
FALSE_NEG
public static final WekaThresholdCurve.AttributeName FALSE_NEG
-
FALSE_POS
public static final WekaThresholdCurve.AttributeName FALSE_POS
-
TRUE_NEG
public static final WekaThresholdCurve.AttributeName TRUE_NEG
-
FP_RATE
public static final WekaThresholdCurve.AttributeName FP_RATE
-
TP_RATE
public static final WekaThresholdCurve.AttributeName TP_RATE
-
PRECISION
public static final WekaThresholdCurve.AttributeName PRECISION
-
RECALL
public static final WekaThresholdCurve.AttributeName RECALL
-
FALLOUT
public static final WekaThresholdCurve.AttributeName FALLOUT
-
FMEASURE
public static final WekaThresholdCurve.AttributeName FMEASURE
-
SAMPLE_SIZE
public static final WekaThresholdCurve.AttributeName SAMPLE_SIZE
-
LIFT
public static final WekaThresholdCurve.AttributeName LIFT
-
THRESHOLD
public static final WekaThresholdCurve.AttributeName THRESHOLD
-
-
Method Detail
-
values
public static WekaThresholdCurve.AttributeName[] 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 (WekaThresholdCurve.AttributeName c : WekaThresholdCurve.AttributeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WekaThresholdCurve.AttributeName 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
-
toDisplay
public String toDisplay()
Returns the display string.- Specified by:
toDisplay
in interfaceadams.core.EnumWithCustomDisplay<WekaThresholdCurve.AttributeName>
- Returns:
- the display string
-
toRaw
public String toRaw()
Returns the raw enum string.- Specified by:
toRaw
in interfaceadams.core.EnumWithCustomDisplay<WekaThresholdCurve.AttributeName>
- Returns:
- the raw enum string
-
toString
public String toString()
Returns the display string.- Overrides:
toString
in classEnum<WekaThresholdCurve.AttributeName>
- Returns:
- the display string
-
parse
public WekaThresholdCurve.AttributeName parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceadams.core.EnumWithCustomParsing<WekaThresholdCurve.AttributeName>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if not found
-
toString
public static String toString(adams.core.option.AbstractOption option, Object object)
Returns the enum as string.- Parameters:
option
- the current optionobject
- the enum object to convert- Returns:
- the generated string
-
valueOf
public static WekaThresholdCurve.AttributeName valueOf(adams.core.option.AbstractOption option, String str)
Returns an enum generated from the string.- Parameters:
option
- the current optionstr
- the string to convert to an enum- Returns:
- the generated enum or null in case of error
-
-