pub trait Metrics<V> {
fn update(&mut self, sample: &V);
fn include(&mut self, metrics: &Self);
}
Implement this for specific observations.
Loading content...
Integrate a single sample into tha metrics.
This involves updating the min and max values
as well as the count and the sum.
Include other metrics into this metrics.
Loading content...