pub struct TemporalDriftConfig {
pub enabled: bool,
pub amount_mean_drift: f64,
pub amount_variance_drift: f64,
pub anomaly_rate_drift: f64,
pub concept_drift_rate: f64,
pub sudden_drift_probability: f64,
pub sudden_drift_magnitude: f64,
pub seasonal_drift: bool,
pub drift_start_period: u32,
pub drift_type: DriftType,
}Expand description
Temporal drift configuration for simulating distribution changes over time.
This enables generation of data that shows realistic temporal evolution, useful for training drift detection models and testing temporal robustness.
Fields§
§enabled: boolEnable temporal drift simulation.
amount_mean_drift: f64Amount mean drift per period (e.g., 0.02 = 2% mean shift per month). Simulates gradual inflation or business growth.
amount_variance_drift: f64Amount variance drift per period (e.g., 0.01 = 1% variance increase per month). Simulates increasing volatility over time.
anomaly_rate_drift: f64Anomaly rate drift per period (e.g., 0.001 = 0.1% increase per month). Simulates increasing fraud attempts or degrading controls.
concept_drift_rate: f64Concept drift rate - how quickly feature distributions change (0.0-1.0). Higher values cause more rapid distribution shifts.
sudden_drift_probability: f64Sudden drift events - probability of a sudden distribution shift in any period.
sudden_drift_magnitude: f64Magnitude of sudden drift events when they occur (multiplier).
seasonal_drift: boolSeasonal drift - enable cyclic patterns that repeat annually.
drift_start_period: u32Drift start period (0 = from beginning). Use to simulate stable baseline before drift.
drift_type: DriftTypeDrift type: “gradual”, “sudden”, “recurring”, “mixed”
Implementations§
Source§impl TemporalDriftConfig
impl TemporalDriftConfig
Sourcepub fn to_core_config(&self) -> DriftConfig
pub fn to_core_config(&self) -> DriftConfig
Convert to core DriftConfig for use in generators.
Trait Implementations§
Source§impl Clone for TemporalDriftConfig
impl Clone for TemporalDriftConfig
Source§fn clone(&self) -> TemporalDriftConfig
fn clone(&self) -> TemporalDriftConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TemporalDriftConfig
impl Debug for TemporalDriftConfig
Source§impl Default for TemporalDriftConfig
impl Default for TemporalDriftConfig
Source§impl<'de> Deserialize<'de> for TemporalDriftConfig
impl<'de> Deserialize<'de> for TemporalDriftConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TemporalDriftConfig
impl RefUnwindSafe for TemporalDriftConfig
impl Send for TemporalDriftConfig
impl Sync for TemporalDriftConfig
impl Unpin for TemporalDriftConfig
impl UnsafeUnpin for TemporalDriftConfig
impl UnwindSafe for TemporalDriftConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.