Class MaxDataReducer

  • All Implemented Interfaces:
    RendererDataReducer

    public class MaxDataReducer
    extends java.lang.Object
    implements RendererDataReducer
    -- essentially a down-sampling data reduction algorithm
    Author:
    braeun
    • Constructor Summary

      Constructors 
      Constructor Description
      MaxDataReducer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int reducePoints​(double[] xValues, double[] yValues, double[] xPointErrorsPos, double[] xPointErrorsNeg, double[] yPointErrorsPos, double[] yPointErrorsNeg, java.lang.String[] styles, boolean[] pointSelected, int indexMin, int indexMax)
      Internal function to the ErrorDataSetRenderer arrays are cached copies and operations are assumed to be performed in-place (<-> for performance reasons/minimisation of memory allocation)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxDataReducer

        public MaxDataReducer()
    • Method Detail

      • reducePoints

        public int reducePoints​(double[] xValues,
                                double[] yValues,
                                double[] xPointErrorsPos,
                                double[] xPointErrorsNeg,
                                double[] yPointErrorsPos,
                                double[] yPointErrorsNeg,
                                java.lang.String[] styles,
                                boolean[] pointSelected,
                                int indexMin,
                                int indexMax)
        Description copied from interface: RendererDataReducer
        Internal function to the ErrorDataSetRenderer arrays are cached copies and operations are assumed to be performed in-place (<-> for performance reasons/minimisation of memory allocation)
        Specified by:
        reducePoints in interface RendererDataReducer
        Parameters:
        xValues - array of x coordinates
        yValues - array of y coordinates
        xPointErrorsPos - array of coordinates containing x+exp
        xPointErrorsNeg - array of coordinates containing x-exn
        yPointErrorsPos - array of coordinates containing x+eyp
        yPointErrorsNeg - array of coordinates containing x+eyn
        styles - point styles
        pointSelected - array containing the points that have been specially selected by the user
        indexMin - minimum index of those array that shall be considered
        indexMax - maximum index of those array that shall be considered
        Returns:
        effective number of points that remain after the reduction