1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! # u-numflow
//!
//! Foundational mathematical primitives.
//!
//! This crate provides foundational mathematical, statistical, and probabilistic
//! building blocks that are domain-agnostic. It knows nothing about scheduling,
//! nesting, geometry, or any consumer domain.
//!
//! ## Modules
//!
//! - [`stats`] — Descriptive statistics with numerical stability guarantees
//! - [`distributions`] — Probability distributions (Uniform, Triangular, PERT, Normal, LogNormal, Weibull)
//! - [`special`] — Special mathematical functions (normal CDF, inverse normal CDF)
//! - [`matrix`] — Dense matrix operations (multiply, determinant, inverse, Cholesky)
//! - [`random`] — Random number generation, shuffling, and weighted sampling
//! - [`collections`] — Specialized data structures (Union-Find)
//! - [`transforms`] — Box-Cox power transformation
//! - [`fourier`] — Discrete Fourier transform of any length (radix-2 / Bluestein)
//!
//! ## Design Philosophy
//!
//! - **Numerical stability first**: Welford's algorithm for variance,
//! Neumaier summation for accumulation
//! - **Reproducibility**: Seeded RNG support for deterministic experiments
//! - **Property-based testing**: Mathematical invariants verified via proptest