Interface ICompress

    • Method Detail

      • getCompressedXSeries

        double[] getCompressedXSeries()
        Gets the compressed X series
        Returns:
        the compressed X series
      • getCompressedYSeries

        double[] getCompressedYSeries()
        Gets the compressed Y series
        Returns:
        the compressed Y series
      • getCompressedIndexes

        int[] getCompressedIndexes()
        Gets the compressed series indexes
        Returns:
        the compressed series indexes
      • setXSeries

        void setXSeries​(double[] xSeries)
        Sets X series which have to be sorted.
        Parameters:
        xSeries - the X series
      • setYSeries

        void setYSeries​(double[] ySeries)
        sets the Y series
        Parameters:
        ySeries - the Y series
      • compress

        boolean compress​(CompressConfig config)
        Ignores the points which are in the same grid as the previous point.
        Parameters:
        config - the configuration for compression
        Returns:
        true if the compression succeeds