pub struct CChart { /* private fields */ }Expand description
Count of defects per unit (C) chart.
Monitors the total number of defects observed in a constant area of opportunity (inspection unit). Based on the Poisson distribution.
§Formulas
- CL = c-bar (mean defect count)
- UCL = c-bar + 3 * sqrt(c-bar)
- LCL = max(0, c-bar - 3 * sqrt(c-bar))
§Reference
Montgomery, D.C. (2019). Introduction to Statistical Quality Control, 8th ed., Chapter 7, Section 7.4.
Implementations§
Source§impl CChart
impl CChart
Sourcepub fn add_sample(&mut self, defects: u64)
pub fn add_sample(&mut self, defects: u64)
Add a defect count for one inspection unit.
Sourcepub fn control_limits(&self) -> Option<(f64, f64, f64)>
pub fn control_limits(&self) -> Option<(f64, f64, f64)>
Get the control limits as (ucl, cl, lcl), or None if no data.
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 CChart
impl RefUnwindSafe for CChart
impl Send for CChart
impl Sync for CChart
impl Unpin for CChart
impl UnwindSafe for CChart
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