Expand description
stats — a curated, validated front-door for descriptive statistics.
Two halves:
descriptive— unweightedmean/variance/std_dev/percentile/median, a thin wrapper overstatrsthat returns aResultinstead of panicking and speaks plain&[f64];weighted— the weighted family (weighted_mean/weighted_variance/weighted_std_dev/weighted_percentile) thatstatrsdoes not provide.
Namespaced under stats (not re-exported at the crate root), matching the
units / container front-doors.
Re-exports§
pub use descriptive::mean;pub use descriptive::median;pub use descriptive::percentile;pub use descriptive::std_dev;pub use descriptive::variance;pub use weighted::weighted_mean;pub use weighted::weighted_percentile;pub use weighted::weighted_std_dev;pub use weighted::weighted_variance;
Modules§
- descriptive
- Unweighted descriptive statistics — a thin, validated front-door over
statrs’sStatistics/OrderStatistics. - weighted
- Weighted descriptive statistics — the part
statrsdoes not provide.