pub struct ParameterDrift {
pub parameter: String,
pub drift_type: ParameterDriftType,
pub initial_value: f64,
pub target_or_rate: f64,
pub start_period: u32,
pub end_period: Option<u32>,
pub steepness: f64,
}Expand description
Configuration for a parameter drift.
Fields§
§parameter: StringName of the parameter being drifted
drift_type: ParameterDriftTypeType of drift pattern
initial_value: f64Initial value
target_or_rate: f64Final value (for logistic) or rate (for linear/exponential)
start_period: u32Start period for the drift
end_period: Option<u32>End period for the drift (for logistic), or ignored for linear/exponential
steepness: f64Steepness for logistic curve (higher = sharper transition)
Implementations§
Trait Implementations§
Source§impl Clone for ParameterDrift
impl Clone for ParameterDrift
Source§fn clone(&self) -> ParameterDrift
fn clone(&self) -> ParameterDrift
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParameterDrift
impl Debug for ParameterDrift
Source§impl Default for ParameterDrift
impl Default for ParameterDrift
Source§impl<'de> Deserialize<'de> for ParameterDrift
impl<'de> Deserialize<'de> for ParameterDrift
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ParameterDrift
impl RefUnwindSafe for ParameterDrift
impl Send for ParameterDrift
impl Sync for ParameterDrift
impl Unpin for ParameterDrift
impl UnsafeUnpin for ParameterDrift
impl UnwindSafe for ParameterDrift
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