public class RestDownsampler extends Object
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.
This is *NOT* perfect. The range of returned items is not known upfront, so a rough assumption is made based on the first result, and up until validEnd.
| 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 projectedEnd) |
RestDownsampler(long projectedEnd,
int intervalCount) |
| Modifier and Type | Method and Description |
|---|---|
List<RestDownsampler.Sample> |
collect() |
long |
lastSampleTime() |
void |
process(long time,
double value)
Assumes timesorted processing, as the first entry will be used to
determine the time spread of the buckets, up until validEnd.
|
void |
process(ParameterValue pval) |
public RestDownsampler(long projectedEnd)
public RestDownsampler(long projectedEnd,
int intervalCount)
public void process(long time,
double value)
public List<RestDownsampler.Sample> collect()
public void process(ParameterValue pval)
public long lastSampleTime()
Copyright © 2018 Space Applications Services. All rights reserved.