Class DataHelper


  • public class DataHelper
    extends Object
    Helper class for data.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • DataHelper

        public DataHelper()
    • Method Detail

      • filter

        public static SpreadSheet filter​(SpreadSheet data,
                                         String xColName,
                                         double[] xRange,
                                         String yColName,
                                         double[] yRange)
        Filters the data, using the specified ranges.
        Parameters:
        data - the data to filter
        xRange - optional limits for X values
        yRange - optional limits for Y values
        Returns:
        the filtered data
      • filter

        public static SpreadSheet filter​(SpreadSheet data,
                                         int xCol,
                                         double[] xRange,
                                         int yCol,
                                         double[] yRange)
        Filters the data, using the specified ranges.
        Parameters:
        data - the data to filter
        xRange - optional limits for X values
        yRange - optional limits for Y values
        Returns:
        the filtered data