kobo_db_tools/statistics/
trait.rs

1pub trait Statistics {
2    type Metric;
3    fn avg(&self) -> f64;
4    fn calculate_percentile(&self, metric: Self::Metric, percentiles: &[f64]) -> Vec<f64>;
5}