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.Sample
samples
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, toString
public double combine(List<SampledStat.Sample> samples, MetricConfig config, long now)