Class SubSample

    • Field Detail

      • m_Size

        protected double m_Size
        the size of the sample (0-1: percent, >1: absolute number).
      • m_Invert

        protected boolean m_Invert
        whether to invert the selection.
    • Constructor Detail

      • SubSample

        public SubSample()
    • Method Detail

      • setSize

        public void setSize​(double value)
        Sets the size of the sample (0-1: percentage, >1: absolute number).
        Parameters:
        value - the size
      • getSize

        public double getSize()
        Returns the size of the sample (0-1: percentage, >1: absolute number).
        Returns:
        the size
      • sizeTipText

        public String sizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setGenerator

        public void setGenerator​(RandomIntegerRangeGenerator value)
        Sets the random number generator.
        Parameters:
        value - the generator
      • generatorTipText

        public String generatorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setInvert

        public void setInvert​(boolean value)
        Sets whether to invert the matching.
        Parameters:
        value - true if to invert
      • getInvert

        public boolean getInvert()
        Returns whether to invert the matching.
        Returns:
        true if to invert
      • invertTipText

        public String invertTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doFindColumns

        protected int[] doFindColumns​(SpreadSheet data)
        Returns the columns of interest in the spreadsheet.
        Specified by:
        doFindColumns in class AbstractColumnFinder
        Parameters:
        data - the spreadsheet to inspect
        Returns:
        the columns of interest