pub struct ResidualSign {
pub residual: f64,
pub drift: f64,
pub slew: f64,
pub timestamp_ns: u64,
pub source: ResidualSource,
}Expand description
The residual sign: DSFB’s primary inferential object.
Captures the instantaneous structural state of a residual trajectory:
residual(r): raw deviation from baselinedrift(ω): first derivative — direction and rate of changeslew(α): second derivative — curvature / acceleration of change
These three quantities, together with the admissibility envelope and grammar state, fully determine the structural interpretation.
Fields§
§residual: f64Raw residual: r(k) = measured(k) - baseline(k).
drift: f64Drift: estimated first derivative of the residual trajectory. Positive drift = residual growing (degradation direction).
slew: f64Slew: estimated second derivative of the residual trajectory. Positive slew = drift accelerating (worsening curvature).
timestamp_ns: u64Monotonic timestamp (nanoseconds) of this observation.
source: ResidualSourceSource channel that produced this residual.
Trait Implementations§
Source§impl Clone for ResidualSign
impl Clone for ResidualSign
Source§fn clone(&self) -> ResidualSign
fn clone(&self) -> ResidualSign
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 ResidualSign
impl Debug for ResidualSign
impl Copy for ResidualSign
Auto Trait Implementations§
impl Freeze for ResidualSign
impl RefUnwindSafe for ResidualSign
impl Send for ResidualSign
impl Sync for ResidualSign
impl Unpin for ResidualSign
impl UnsafeUnpin for ResidualSign
impl UnwindSafe for ResidualSign
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