Interface ICompress
- All Known Implementing Classes:
Compress, CompressBarSeries, CompressLineSeries, CompressScatterSeries
public interface ICompress
A Compressor.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancompress(CompressConfig config) Ignores the points which are in the same grid as the previous point.int[]Gets the compressed series indexesdouble[]Gets the compressed X seriesdouble[]Gets the compressed Y seriesvoidsetXSeries(double[] xSeries) Sets X series which have to be sorted.voidsetYSeries(double[] ySeries) sets the Y series
-
Method Details
-
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
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
-