pub trait Aggregator: Send + Sync {
// Required methods
fn update(&mut self, value: f64);
fn value(&self) -> f64;
fn reset(&mut self);
}Expand description
Accumulates a stream of f64 values into a single summary statistic.
Implement this to add custom aggregators. Built-ins: Mean, Max,
Min, Last, RollingMean.