public class ExponentialWeightedAvg extends Avg
SampledStat that maintains an exponentially weighted average over its samples.
This is the same as an Exponential Moving Average for a fixed sample setSampledStat.Samplesamples| Constructor and Description |
|---|
ExponentialWeightedAvg(double alpha) |
| Modifier and Type | Method and Description |
|---|---|
double |
combine(List<SampledStat.Sample> samples,
MetricConfig config,
long now) |
current, measure, newSample, oldest, purgeObsoleteSamples, record, toStringpublic double combine(List<SampledStat.Sample> samples, MetricConfig config, long now)