pub trait Statistics {
type Metric;
// Required methods
fn avg(&self) -> f64;
fn calculate_percentile(
&self,
metric: Self::Metric,
percentiles: &[f64],
) -> Vec<f64>;
}pub trait Statistics {
type Metric;
// Required methods
fn avg(&self) -> f64;
fn calculate_percentile(
&self,
metric: Self::Metric,
percentiles: &[f64],
) -> Vec<f64>;
}