Package 

Class LTTBSampler

  • 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)
      • Methods inherited from class com.androidplot.xy.Sampler

        run
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait