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//! - [`msa`] — Measurement System Analysis (Gage R&R, ANOVA method)
22//!
23//! ## Design Philosophy
24//!
25//! - **Domain-agnostic**: No manufacturing or process-specific types
26//! - **Numerical stability**: Leverages `u-numflow` for stable statistics
27//! - **Research-backed**: All algorithms reference academic literature
28
29pub mod capability;
30pub mod correlation;
31pub mod detection;
32pub mod distribution;
33pub mod msa;
34pub mod regression;
35pub mod smoothing;
36pub mod spc;
37pub mod testing;
38pub mod weibull;
39
40#[cfg(feature = "wasm")]
41pub mod wasm;
42
43#[cfg(feature = "ffi")]
44pub mod ffi;