#[non_exhaustive]pub struct PageHinkleyConfig {
pub threshold: f64,
pub warning_threshold: f64,
pub alpha: f64,
pub delta: f64,
pub min_samples: u64,
}Expand description
Configuration for PageHinkley.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.threshold: f64The detection threshold (λ). When the test statistic exceeds this value, a drift is reported. Must be finite and strictly positive. Larger values reduce false positives but increase detection latency.
warning_threshold: f64The warning threshold. When the test statistic exceeds this value
but not threshold, a warning is reported.
Must be in [0, threshold]. Set to 0.0 to disable warnings.
alpha: f64The forgetting factor (α) applied to the cumulative sum at each step.
Must be in (0, 1]. Smaller values make the detector forget old
observations faster. 1.0 gives the standard (non-forgetting)
Page-Hinkley test.
delta: f64The allowed drift magnitude (δ). The cumulative sum is penalised by this amount at each step, making the detector less sensitive to small fluctuations. Must be finite and non-negative.
min_samples: u64Minimum number of samples before any detection is reported. Must be greater than zero.
Trait Implementations§
Source§impl Clone for PageHinkleyConfig
impl Clone for PageHinkleyConfig
Source§fn clone(&self) -> PageHinkleyConfig
fn clone(&self) -> PageHinkleyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more