Class WekaLabelRange

    • Constructor Detail

      • WekaLabelRange

        public WekaLabelRange()
        Initializes with no range.
      • WekaLabelRange

        public WekaLabelRange​(String range)
        Initializes with the given range, but no maximum.
        Parameters:
        range - the range to use
      • WekaLabelRange

        public WekaLabelRange​(String range,
                              int max)
        Initializes with the given range and maximum.
        Parameters:
        range - the range to use
        max - the maximum of the 1-based index (e.g., use "10" to allow "1-10" or -1 for uninitialized)
    • Method Detail

      • getNumNames

        protected int getNumNames​(weka.core.Attribute data)
        Returns the number of columns the dataset has.
        Specified by:
        getNumNames in class AbstractDataBackedRange<weka.core.Attribute>
        Parameters:
        data - the dataset to retrieve the number of columns
      • getName

        protected String getName​(weka.core.Attribute data,
                                 int colIndex)
        Returns the column name at the specified index.
        Specified by:
        getName in class AbstractDataBackedRange<weka.core.Attribute>
        Parameters:
        data - the dataset to use
        colIndex - the column index
        Returns:
        the column name