pub struct CusumConfig {
pub k: f64,
pub h: f64,
pub ncomp: usize,
pub alpha: f64,
pub multivariate: bool,
pub restart: bool,
}Expand description
Configuration for CUSUM monitoring.
Fields§
§k: f64CUSUM reference value (allowance parameter, default 0.5). Controls the size of shifts the chart is designed to detect.
h: f64CUSUM decision interval (threshold, default 5.0).
ncomp: usizeNumber of principal components (default 5).
alpha: f64Significance level for fallback chi-squared limit (default 0.05).
multivariate: boolWhether to use multivariate CUSUM (Crosier’s MCUSUM) or per-component univariate CUSUM (default: true = multivariate).
restart: boolWhether to restart the CUSUM accumulator after each alarm (default false). When true, the accumulator resets to zero after crossing the threshold, making the chart memoryless post-alarm. This improves sensitivity for detecting subsequent shifts but loses information about the magnitude of the current shift. When false (default), the accumulator remains elevated after an alarm; all subsequent observations will also alarm until the process returns to the in-control state and the accumulator decays back below h.
Trait Implementations§
Source§impl Clone for CusumConfig
impl Clone for CusumConfig
Source§fn clone(&self) -> CusumConfig
fn clone(&self) -> CusumConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CusumConfig
impl Debug for CusumConfig
Source§impl Default for CusumConfig
impl Default for CusumConfig
Source§impl PartialEq for CusumConfig
impl PartialEq for CusumConfig
impl StructuralPartialEq for CusumConfig
Auto Trait Implementations§
impl Freeze for CusumConfig
impl RefUnwindSafe for CusumConfig
impl Send for CusumConfig
impl Sync for CusumConfig
impl Unpin for CusumConfig
impl UnsafeUnpin for CusumConfig
impl UnwindSafe for CusumConfig
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.