Expand description
Statistical functions for benchmarking analysis.
This crate provides pure statistical functions with no I/O dependencies.
It is designed to be used by perfgate-domain and can be independently
tested and versioned.
Part of the perfgate workspace.
§Overview
The crate provides:
- Summary statistics (median, min, max) for
u64andf64slices - Percentile calculation
- Mean and variance computation
- Trend analysis with linear regression and drift classification
Modules§
- trend
- Trend analysis for predicting budget breaches.
Enums§
Functions§
- mean_
and_ variance - Compute sample mean and unbiased variance (Welford’s algorithm).
- median_
f64_ sorted - median_
u64_ sorted - percentile
- Compute the
q-th percentile (0.0–1.0) using linear interpolation. - summarize_
f64 - Compute min, max, and median for an
f64slice. - summarize_
u64 - Compute min, max, and median for a
u64slice.