public class RamanDouglasPeukerDataReducer extends Object implements RendererDataReducer
| Constructor and Description |
|---|
RamanDouglasPeukerDataReducer() |
| Modifier and Type | Method and Description |
|---|---|
double[][] |
filter(double[][] data) |
double |
getEpsilon() |
protected double[][] |
ramerDouglasPeuckerFunction(double[][] points,
int startIndex,
int endIndex) |
int |
reducePoints(double[] xValues,
double[] yValues,
double[] xPointErrorsPos,
double[] xPointErrorsNeg,
double[] yPointErrorsPos,
double[] yPointErrorsNeg,
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)
|
void |
setEpsilon(double epsilon) |
public double[][] filter(double[][] data)
public double getEpsilon()
epsilonprotected double[][] ramerDouglasPeuckerFunction(double[][] points,
int startIndex,
int endIndex)
public int reducePoints(double[] xValues,
double[] yValues,
double[] xPointErrorsPos,
double[] xPointErrorsNeg,
double[] yPointErrorsPos,
double[] yPointErrorsNeg,
String[] styles,
boolean[] pointSelected,
int indexMin,
int indexMax)
RendererDataReducerreducePoints in interface RendererDataReducerxValues - 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 consideredpublic void setEpsilon(double epsilon)
epsilon - maximum distance of a point in data between original curve and simplified curveCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.