de.gsi.chart.renderer.RendererDataReducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chartfx-chart Show documentation
Show all versions of chartfx-chart Show documentation
This charting library ${project.artifactId}- is an extension
in the spirit of Oracle's XYChart and performance/time-proven JDataViewer charting functionalities.
Emphasis was put on plotting performance for both large number of data points and real-time displays,
as well as scientific accuracies leading to error bar/surface plots, and other scientific plotting
features (parameter measurements, fitting, multiple axes, zoom, ...).
package de.gsi.chart.renderer;
/**
* @author rstein
* N.B. in-place computation have to be assumed
* (ie. the reduced data set is part and overwrites of the input arrays)
*/
public 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)
*
* @param xValues array of x coordinates
* @param yValues array of y coordinates
* @param xPointErrorsPos array of coordinates containing x+exp
* @param xPointErrorsNeg array of coordinates containing x-exn
* @param yPointErrorsPos array of coordinates containing x+eyp
* @param yPointErrorsNeg array of coordinates containing x+eyn
* @param styles point styles
* @param pointSelected array containing the points that have been specially selected by the user
* @param indexMin minimum index of those array that shall be considered
* @param indexMax maximum index of those array that shall be considered
* @return effective number of points that remain after the reduction
*/
int reducePoints(final double[] xValues, final double[] yValues, final double[] xPointErrorsPos,
final double[] xPointErrorsNeg, final double[] yPointErrorsPos, final double[] yPointErrorsNeg,
final String[] styles, final boolean[] pointSelected, final int indexMin, final int indexMax);
}