pub struct SignTuple {
pub norm: f64,
pub drift: f64,
pub slew: f64,
}Expand description
A single residual sign tuple.
All DSFB grammar states, motif classifications, and policy
decisions derive from this object alone. The field names deliberately
mirror dsfb-rf (norm, drift, slew) so cross-crate tooling can
consume sign tuples uniformly.
Fields§
§norm: f64‖r(k)‖ — instantaneous residual norm. What threshold detectors see.
drift: f64ṙ(k) — mean first-difference over the drift window.
slew: f64r̈(k) — slew (drift curvature).
Implementations§
Source§impl SignTuple
impl SignTuple
Sourcepub const fn new(norm: f64, drift: f64, slew: f64) -> Self
pub const fn new(norm: f64, drift: f64, slew: f64) -> Self
Construct a sign tuple from explicit components.
Sourcepub fn is_outward_drift(&self) -> bool
pub fn is_outward_drift(&self) -> bool
Returns true if drift is positive (outward motion relative to nominal).
Sourcepub fn is_abrupt_slew(&self, delta_s: f64) -> bool
pub fn is_abrupt_slew(&self, delta_s: f64) -> bool
Returns true if the slew magnitude exceeds the abrupt-slew
threshold delta_s.
Trait Implementations§
impl Copy for SignTuple
impl StructuralPartialEq for SignTuple
Auto Trait Implementations§
impl Freeze for SignTuple
impl RefUnwindSafe for SignTuple
impl Send for SignTuple
impl Sync for SignTuple
impl Unpin for SignTuple
impl UnsafeUnpin for SignTuple
impl UnwindSafe for SignTuple
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