pub struct MotifParams {
pub rho: f64,
pub sigma0: f64,
pub drift_threshold: f64,
pub slew_threshold: f64,
pub min_dwell_seconds: f64,
}Expand description
Per-motif tunable parameters. Loaded from spec/motifs.yaml.
Fields§
§rho: f64DSFB EMA smoothing.
sigma0: f64DSFB trust softness.
drift_threshold: f64Drift envelope: |EMA residual| above this enters drift state.
slew_threshold: f64Slew envelope: instantaneous |residual| above this enters boundary state.
min_dwell_seconds: f64Minimum dwell time in seconds; episodes shorter than this are discarded as blips.
Implementations§
Source§impl MotifParams
impl MotifParams
Sourcepub fn default_for(class: MotifClass) -> Self
pub fn default_for(class: MotifClass) -> Self
Conservative defaults used in tests and as the paper’s published baseline — every reported number can be reproduced by leaving these alone.
Trait Implementations§
Source§impl Clone for MotifParams
impl Clone for MotifParams
Source§fn clone(&self) -> MotifParams
fn clone(&self) -> MotifParams
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 MotifParams
impl Debug for MotifParams
Source§impl<'de> Deserialize<'de> for MotifParams
impl<'de> Deserialize<'de> for MotifParams
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 MotifParams
impl RefUnwindSafe for MotifParams
impl Send for MotifParams
impl Sync for MotifParams
impl Unpin for MotifParams
impl UnsafeUnpin for MotifParams
impl UnwindSafe for MotifParams
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