pub struct GateConfig {
pub enabled: Vec<Gate>,
pub stutter_k: u64,
pub window: usize,
pub horizon: usize,
pub trend_tol: f64,
pub energy_tol: f64,
}Expand description
Tunables for the window-based gates.
Fields§
§enabled: Vec<Gate>Which gates are enabled. Empty means “no gates” — the Phase 1 behavior.
stutter_k: u64Inv5: maximum consecutive Stutters (𝐂5, default K = 2).
window: usizeInv6 / Inv11: window length in steps.
horizon: usizeInv8: horizon over which the residual trend is measured.
trend_tol: f64Inv8: allowed relative rise in the mean residual across the horizon.
Inv8 detects a sustained increase, not sampling noise. Comparing the
two half-window means of a stationary residual series already swings by
~12% at horizon = 32, so an absolute or very small tolerance would
fire constantly and mean nothing. The default 0.25 sits well clear of
that noise floor while still catching genuine divergence.
energy_tol: f64Inv9: absolute energy tolerance.
Implementations§
Source§impl GateConfig
impl GateConfig
Trait Implementations§
Source§impl Clone for GateConfig
impl Clone for GateConfig
Source§impl Debug for GateConfig
impl Debug for GateConfig
Source§impl Default for GateConfig
impl Default for GateConfig
Source§impl<'de> Deserialize<'de> for GateConfig
impl<'de> Deserialize<'de> for GateConfig
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 GateConfig
impl RefUnwindSafe for GateConfig
impl Send for GateConfig
impl Sync for GateConfig
impl Unpin for GateConfig
impl UnsafeUnpin for GateConfig
impl UnwindSafe for GateConfig
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