Skip to main content

u_analytics/spc/
mod.rs

1//! Statistical Process Control (SPC) charts.
2//!
3//! Provides control chart implementations for both variables and attributes data.
4//!
5//! # Variables Charts
6//!
7//! - [`XBarRChart`] — X-bar and Range chart for subgroup data (n=2..10)
8//! - [`XBarSChart`] — X-bar and Standard Deviation chart for subgroup data (n=2..10)
9//! - [`IndividualMRChart`] — Individual and Moving Range chart for individual observations
10//!
11//! # Attributes Charts
12//!
13//! - [`PChart`] — Proportion nonconforming (variable sample size)
14//! - [`NPChart`] — Count of nonconforming items (constant sample size)
15//! - [`CChart`] — Count of defects per unit (constant area of opportunity)
16//! - [`UChart`] — Defects per unit (variable area of opportunity)
17//!
18//! # Run Rules
19//!
20//! - [`WesternElectricRules`] — 4 classic run rules
21//! - [`NelsonRules`] — 8 rules (superset of Western Electric)
22//!
23//! # References
24//!
25//! - Montgomery, D.C. (2019). *Introduction to Statistical Quality Control*, 8th ed.
26//! - ASTM E2587 — Standard Practice for Use of Control Charts
27//! - Nelson, L.S. (1984). "The Shewhart Control Chart — Tests for Special Causes",
28//!   *Journal of Quality Technology* 16(4), pp. 237-239.
29
30mod attributes;
31mod chart;
32mod rules;
33mod variables;
34
35pub use attributes::{CChart, NPChart, PChart, UChart};
36pub use chart::{ChartPoint, ControlChart, ControlLimits, Violation, ViolationType};
37pub use rules::{NelsonRules, RunRule, WesternElectricRules};
38pub use variables::{IndividualMRChart, XBarRChart, XBarSChart};