Package de.gsi.chart.renderer
Interface RendererDataReducer
-
- All Known Implementing Classes:
DefaultDataReducer,MaxDataReducer,RamanDouglasPeukerDataReducer
public interface RendererDataReducer- Author:
- rstein N.B. in-place computation have to be assumed (ie. the reduced data set is part and overwrites of the input arrays)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intreducePoints(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)
-
-
-
Method Detail
-
reducePoints
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)- Parameters:
xValues- array of x coordinatesyValues- array of y coordinatesxPointErrorsPos- array of coordinates containing x+expxPointErrorsNeg- array of coordinates containing x-exnyPointErrorsPos- array of coordinates containing x+eypyPointErrorsNeg- array of coordinates containing x+eynstyles- point stylespointSelected- array containing the points that have been specially selected by the userindexMin- minimum index of those array that shall be consideredindexMax- maximum index of those array that shall be considered- Returns:
- effective number of points that remain after the reduction
-
-