pub struct EwmaConfig {
pub lambda: f64,
pub ncomp: usize,
pub alpha: f64,
pub exact_covariance: bool,
}Expand description
Configuration for EWMA monitoring.
Fields§
§lambda: f64EWMA smoothing parameter in (0, 1] (default 0.2).
lambda = 1 gives raw scores (no smoothing).
lambda controls the trade-off between sensitivity and robustness.
Small lambda (0.05–0.1) detects persistent small shifts; large lambda
(0.3–0.5) detects sudden large shifts. lambda = 0.2 is a common
default balancing both. For ARL_0 ~ 370, typical (lambda, L) pairs:
(0.05, 2.615), (0.10, 2.814), (0.20, 2.962), (0.50, 3.071). See Lucas
& Saccucci (1990), Table 3.
ncomp: usizeNumber of principal components (default 5).
alpha: f64Significance level (default 0.05).
exact_covariance: boolUse exact time-dependent covariance correction (default false). When true, the T² statistic accounts for the EWMA startup transient where variance grows from 0 to the asymptotic value (Lowry et al., 1992). This prevents inflated T² values at early time steps.
Recommended true for sequential monitoring with n < 50 observations.
For large Phase II batches, the asymptotic approximation (false) is
adequate and slightly faster.
Trait Implementations§
Source§impl Clone for EwmaConfig
impl Clone for EwmaConfig
Source§fn clone(&self) -> EwmaConfig
fn clone(&self) -> EwmaConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EwmaConfig
impl Debug for EwmaConfig
Source§impl Default for EwmaConfig
impl Default for EwmaConfig
Source§impl PartialEq for EwmaConfig
impl PartialEq for EwmaConfig
impl StructuralPartialEq for EwmaConfig
Auto Trait Implementations§
impl Freeze for EwmaConfig
impl RefUnwindSafe for EwmaConfig
impl Send for EwmaConfig
impl Sync for EwmaConfig
impl Unpin for EwmaConfig
impl UnsafeUnpin for EwmaConfig
impl UnwindSafe for EwmaConfig
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.