pub struct ObserverConfig {
pub persistence_window: usize,
pub hysteresis_count: u32,
pub default_envelope: AdmissibilityEnvelope,
pub static_priors: StaticPriorSet,
}Expand description
Configuration for the DSFB observer.
Fields§
§persistence_window: usizePersistence window for drift/slew estimation. Recommended: 20–100 for 1-second sampling intervals.
hysteresis_count: u32Hysteresis count for grammar state transitions. Recommended: 3–10.
default_envelope: AdmissibilityEnvelopeDefault admissibility envelope (used when no regime-specific envelope is configured).
static_priors: StaticPriorSetOptional static priors from the crate scanner or caller.
Implementations§
Source§impl ObserverConfig
impl ObserverConfig
Sourcepub fn fast_response() -> Self
pub fn fast_response() -> Self
Lower-latency preset that favors earlier transitions.
Sourcepub fn with_static_priors(self, static_priors: StaticPriorSet) -> Self
pub fn with_static_priors(self, static_priors: StaticPriorSet) -> Self
Return a copy of this configuration with static priors attached.
Trait Implementations§
Source§impl Clone for ObserverConfig
impl Clone for ObserverConfig
Source§fn clone(&self) -> ObserverConfig
fn clone(&self) -> ObserverConfig
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 ObserverConfig
impl Debug for ObserverConfig
Auto Trait Implementations§
impl Freeze for ObserverConfig
impl RefUnwindSafe for ObserverConfig
impl Send for ObserverConfig
impl Sync for ObserverConfig
impl Unpin for ObserverConfig
impl UnsafeUnpin for ObserverConfig
impl UnwindSafe for ObserverConfig
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