Class ByLabel

    • Field Detail

      • m_AttributeIndex

        protected Index m_AttributeIndex
        the attribute index to work on.
      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression to match the labels against.
    • Constructor Detail

      • ByLabel

        public ByLabel()
    • Method Detail

      • setAttributeIndex

        public void setAttributeIndex​(Index value)
        Sets the index of the attribute to perform the matching on.
        Parameters:
        value - the index
      • getAttributeIndex

        public Index getAttributeIndex()
        Returns the index of the attribute to perform the matching on.
        Returns:
        the index
      • attributeIndexTipText

        public String attributeIndexTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression to use.
        Parameters:
        value - the regular expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression in use.
        Returns:
        the regular expression
      • regExpTipText

        public String regExpTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • doFindRows

        protected int[] doFindRows​(weka.core.Instances data)
        Returns the rows of interest in the dataset.
        Specified by:
        doFindRows in class AbstractRowFinder
        Parameters:
        data - the dataset to inspect
        Returns:
        the rows of interest