Enum WekaClassifierRanker.Measure

    • Method Detail

      • values

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

        public static WekaClassifierRanker.Measure 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
      • getMeasure

        public int getMeasure()
        Returns the associated measure.
        Returns:
        the measure
      • toDisplay

        public String toDisplay()
        Returns the display string.
        Specified by:
        toDisplay in interface adams.core.EnumWithCustomDisplay<WekaClassifierRanker.Measure>
        Returns:
        the display string
      • toRaw

        public String toRaw()
        Returns the raw enum string.
        Specified by:
        toRaw in interface adams.core.EnumWithCustomDisplay<WekaClassifierRanker.Measure>
        Returns:
        the raw enum 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 WekaClassifierRanker.Measure 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