Class WekaAttributeRange

    • Constructor Detail

      • WekaAttributeRange

        public WekaAttributeRange()
        Initializes with no range.
      • WekaAttributeRange

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

        public WekaAttributeRange​(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.Instances data)
        Returns the number of columns the dataset has.
        Specified by:
        getNumNames in class AbstractDataBackedRange<weka.core.Instances>
        Parameters:
        data - the dataset to retrieve the number of columns
      • getName

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