Enum EvaluationStatistic

    • Field Detail

      • m_OnlyNominal

        protected Boolean m_OnlyNominal
        whether applies only to nominal classes or not.
    • Method Detail

      • values

        public static EvaluationStatistic[] 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 (EvaluationStatistic c : EvaluationStatistic.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EvaluationStatistic 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 name
        NullPointerException - if the argument is null
      • isPerClass

        public boolean isPerClass()
        Returns whether the statistic is a per-class one.
        Returns:
        true if per class
      • isOnlyNominal

        public boolean isOnlyNominal()
        Returns whether the statistic applies to nominal attributes only.
        Returns:
        true if only for nominal attributes
      • isOnlyNumeric

        public boolean isOnlyNumeric()
        Returns whether the statistic applies to numeric attributes only.
        Returns:
        true if only for numeric attributes
      • toDisplay

        public String toDisplay()
        Returns the display string, including nominal/numeric if it applies.
        Specified by:
        toDisplay in interface adams.core.EnumWithCustomDisplay<EvaluationStatistic>
        Returns:
        the display string
      • toDisplayShort

        public String toDisplayShort()
        Returns the display string.
        Returns:
        the display string
      • toRaw

        public String toRaw()
        Returns the raw enum string.
        Specified by:
        toRaw in interface adams.core.EnumWithCustomDisplay<EvaluationStatistic>
        Returns:
        the raw enum string
      • parse

        public EvaluationStatistic parse​(String s)
        Parses the given string and returns the associated enum.
        Specified by:
        parse in interface adams.core.EnumWithCustomParsing<EvaluationStatistic>
        Parameters:
        s - the string to parse
        Returns:
        the enum or null if not found
      • getField

        public String getField()
        Returns the display string without the "numeric" or "nominal" in parentheses.
        Returns:
        the field string
      • toString

        public static String toString​(adams.core.option.AbstractOption option,
                                      Object object)
        Returns the enum as string.
        Parameters:
        option - the current option
        object - the enum object to convert
        Returns:
        the generated string
      • valueOf

        public static EvaluationStatistic valueOf​(adams.core.option.AbstractOption option,
                                                  String str)
        Returns an enum generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to an enum
        Returns:
        the generated enum or null in case of error