Class Downsampler

java.lang.Object
org.yamcs.http.api.Downsampler
All Implemented Interfaces:
Consumer<ParameterValueArray>

public class Downsampler extends Object implements Consumer<ParameterValueArray>
One-pass downsampler for time-series data (i.e. numeric archived parameters), where the number of recorded data points are not known upfront.

The output is not a bunch of parameter values, but instead a range of values limited to n, which should be fit for inclusion in plots.

  • Constructor Details

    • Downsampler

      public Downsampler(long start, long stop)
    • Downsampler

      public Downsampler(long start, long stop, int sampleCount)
    • Downsampler

      public Downsampler(long start, long stop, int sampleCount, boolean useRawValue)
  • Method Details