pub struct UChart { /* private fields */ }Expand description
Defects per unit (U) chart.
Monitors the defect rate when the area of opportunity (inspection size) varies between subgroups. Control limits are computed individually for each subgroup based on its inspection size.
§Formulas
- CL = u-bar = total_defects / total_units
- UCL_i = u-bar + 3 * sqrt(u-bar / n_i)
- LCL_i = max(0, u-bar - 3 * sqrt(u-bar / n_i))
§Reference
Montgomery, D.C. (2019). Introduction to Statistical Quality Control, 8th ed., Chapter 7, Section 7.4.
Implementations§
Source§impl UChart
impl UChart
Sourcepub fn add_sample(&mut self, defects: u64, units_inspected: f64)
pub fn add_sample(&mut self, defects: u64, units_inspected: f64)
Add a sample with the number of defects and the number of units inspected.
The units_inspected can be fractional (e.g., area or length).
Ignores samples where units_inspected <= 0 or is not finite.
Sourcepub fn is_in_control(&self) -> bool
pub fn is_in_control(&self) -> bool
Check if the process is in statistical control.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UChart
impl RefUnwindSafe for UChart
impl Send for UChart
impl Sync for UChart
impl Unpin for UChart
impl UnwindSafe for UChart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more