-
- All Implemented Interfaces:
-
com.androidplot.xy.Sampler
public class LTTBSampler implements Sampler
Adapted from: https://github.com/drcrane/downsample Note that this implementation does not yet support null values. Basic usage example:
{@code * // An instance of any implementation of XYSeries; SimpleXYSeries, etc: * XYSeries origalSeries = ...; * * // Sampled series with half the resolution of the * EditableXYSeries sampledSeries = new FixedSizeEditableXYSeries( * origalSeries.getTitle(), origalSeries.size() / 2); * * // does the actual sampling: * new LTTBSampler().run(origalSeries, sampledSeries); * }
-
-
Method Summary
Modifier and Type Method Description RectRegion
run(XYSeries rawData, EditableXYSeries sampled)
-
-
Method Detail
-
run
RectRegion run(XYSeries rawData, EditableXYSeries sampled)
-
-
-
-