public class RestDownsampler extends Object implements java.util.function.Consumer<ParameterValueArray>
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
RestDownsampler.Sample
A cumulative sample that keeps track of a rolling average among others.
|
| Constructor and Description |
|---|
RestDownsampler(long start,
long stop) |
RestDownsampler(long start,
long stop,
int sampleCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ParameterValueArray t) |
List<RestDownsampler.Sample> |
collect() |
long |
lastSampleTime() |
void |
process(long time,
double value) |
void |
process(ParameterValue pval) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic RestDownsampler(long start,
long stop)
public RestDownsampler(long start,
long stop,
int sampleCount)
public void process(long time,
double value)
public List<RestDownsampler.Sample> collect()
public void process(ParameterValue pval)
public long lastSampleTime()
public void accept(ParameterValueArray t)
accept in interface java.util.function.Consumer<ParameterValueArray>Copyright © 2018 Space Applications Services. All rights reserved.