Skip to main content

u_analytics/
lib.rs

1//! # u-analytics
2//!
3//! Statistical process control (SPC), process capability analysis, Weibull
4//! reliability, and change-point detection.
5//!
6//! This crate provides industrial quality analysis tools that are
7//! domain-agnostic — they operate on raw `f64` data without knowledge
8//! of manufacturing, scheduling, or any specific consumer domain.
9//!
10//! ## Modules
11//!
12//! - [`spc`] — Control charts (X̄-R, X̄-S, I-MR, P, NP, C, U) with run rules
13//! - [`capability`] — Process capability indices (Cp, Cpk, Pp, Ppk, Cpm)
14//! - [`weibull`] — Weibull parameter estimation (MLE, MRR) and reliability analysis
15//! - [`detection`] — Change-point detection (CUSUM, EWMA, PELT)
16//! - [`smoothing`] — Time series smoothing (SES, Holt, Holt-Winters)
17//! - [`correlation`] — Correlation analysis (Pearson, Spearman, Kendall, matrices)
18//! - [`regression`] — Regression analysis (simple, multiple OLS, VIF)
19//! - [`distribution`] — Distribution analysis (ECDF, histogram bins, QQ-plot, KS test)
20//! - [`testing`] — Hypothesis testing (t-tests, ANOVA, chi-squared, normality)
21//!
22//! ## Design Philosophy
23//!
24//! - **Domain-agnostic**: No manufacturing or process-specific types
25//! - **Numerical stability**: Leverages `u-numflow` for stable statistics
26//! - **Research-backed**: All algorithms reference academic literature
27
28pub mod capability;
29pub mod correlation;
30pub mod detection;
31pub mod distribution;
32pub mod regression;
33pub mod smoothing;
34pub mod spc;
35pub mod testing;
36pub mod weibull;
37
38#[cfg(feature = "wasm")]
39pub mod wasm;