Class SubSample


  • public class SubSample
    extends Object
    Class for taking a smaller sample of a dataset. Used by the matrix class.
    Version:
    $Revision$
    Author:
    msf8
    • Field Detail

      • m_Data

        protected SpreadSheet m_Data
        Instances to plot
      • m_Percentage

        protected double m_Percentage
        Percentage of data to take
    • Constructor Detail

      • SubSample

        public SubSample​(SpreadSheet inst,
                         double percent)
        constructor
        Parameters:
        inst - Instances for plotting
        percent - Percent of data for sub sample
    • Method Detail

      • sample

        public SpreadSheet sample()
                           throws Exception
        Take a sample of the dataset
        Returns:
        Instances containing specified instances of the original instances
        Throws:
        Exception