pub enum DriftMode {
None,
Linear {
rate: f64,
},
Sinusoidal {
amplitude: f64,
period: f64,
},
Step {
step_size: f64,
interval: u64,
},
}Expand description
How a parameter drifts over time.
Variants§
None
No drift (stationary baseline).
Linear
Linear drift: param(t) = base + rate * t
Sinusoidal
Sinusoidal drift: param(t) = base + amplitude * sin(2π * t / period)
Step
Step (abrupt) changes: param(t) = base + step_size * floor(t / interval)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriftMode
impl RefUnwindSafe for DriftMode
impl Send for DriftMode
impl Sync for DriftMode
impl Unpin for DriftMode
impl UnsafeUnpin for DriftMode
impl UnwindSafe for DriftMode
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more