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 set| Constructor and Description |
|---|
ExponentialWeightedAvg(double alpha) |
| Modifier and Type | Method and Description |
|---|---|
double | combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now) |
public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now)