public abstract class DownSampleImpl extends Object implements DownSampler
DownSampler.DataSet| Modifier and Type | Field and Description |
|---|---|
protected int | thresholdNumber of data points to downsample to. |
| Modifier | Constructor and Description |
|---|---|
protected | DownSampleImpl(int threshold)Number of data points to downsample to. |
| Modifier and Type | Method and Description |
|---|---|
DownSampler.DataSet | downsize(long[] timestamps,
double[] values)Downsample the given data. |
protected abstract DownSampler.DataSet | downsizeImpl(DownSampler.DataSet sampled,
long[] timestamps,
double[] values) |
protected void | setDataSetLine(DownSampler.DataSet sampled,
int rank,
long timestamp,
double value)Populate a single element in the downsampled data set. |
protected DownSampleImpl(int threshold)
threshold - number of data points to downsample topublic DownSampler.DataSet downsize(long[] timestamps, double[] values)
DownSamplerdownsize in interface DownSamplertimestamps - the timestampsvalues - the valuesprotected abstract DownSampler.DataSet downsizeImpl(DownSampler.DataSet sampled, long[] timestamps, double[] values)
protected void setDataSetLine(DownSampler.DataSet sampled, int rank, long timestamp, double value)