pub struct IterativePhase1Config {
pub spm: SpmConfig,
pub max_iterations: usize,
pub remove_t2_outliers: bool,
pub remove_spe_outliers: bool,
pub max_removal_fraction: f64,
}Expand description
Configuration for iterative Phase I chart construction.
The iterative approach assumes outliers are a minority of the data.
When more than max_removal_fraction of the original data would be
removed, the procedure stops early, preserving the remaining data
for analysis.
Fields§
§spm: SpmConfigBase SPM configuration.
max_iterations: usizeMaximum number of iterations (default 10).
remove_t2_outliers: boolRemove observations exceeding the T-squared limit (default true).
remove_spe_outliers: boolRemove observations exceeding the SPE limit (default true).
max_removal_fraction: f64Maximum cumulative fraction of original data that can be removed (default 0.3). Iteration stops if the next removal batch would push the total removed count above this fraction of the original dataset size.
This acts as a safeguard against breakdown: if more than 30% of the data is flagged, the in-control model is likely misspecified rather than there being isolated outliers (Rousseeuw & Leroy, 1987, section 4.1, pp. 116–119).
If removal rates don’t decrease across iterations (e.g., oscillating
around 0.3–0.5), the process likely has sustained non-stationarity
rather than isolated outliers. Consider increasing alpha or
investigating the data for structural changes.
Trait Implementations§
Source§impl Clone for IterativePhase1Config
impl Clone for IterativePhase1Config
Source§fn clone(&self) -> IterativePhase1Config
fn clone(&self) -> IterativePhase1Config
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IterativePhase1Config
impl Debug for IterativePhase1Config
Source§impl Default for IterativePhase1Config
impl Default for IterativePhase1Config
Source§impl PartialEq for IterativePhase1Config
impl PartialEq for IterativePhase1Config
impl StructuralPartialEq for IterativePhase1Config
Auto Trait Implementations§
impl Freeze for IterativePhase1Config
impl RefUnwindSafe for IterativePhase1Config
impl Send for IterativePhase1Config
impl Sync for IterativePhase1Config
impl Unpin for IterativePhase1Config
impl UnsafeUnpin for IterativePhase1Config
impl UnwindSafe for IterativePhase1Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.