Skip to main content

Module stats

Module stats 

Source
Expand description

stats — a curated, validated front-door for descriptive statistics.

Two halves:

  • descriptive — unweighted mean / variance / std_dev / percentile / median, a thin wrapper over statrs that returns a Result instead of panicking and speaks plain &[f64];
  • weighted — the weighted family (weighted_mean / weighted_variance / weighted_std_dev / weighted_percentile) that statrs does 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’s Statistics / OrderStatistics.
weighted
Weighted descriptive statistics — the part statrs does not provide.