pub struct SignWindow<const W: usize> { /* private fields */ }Expand description
Fixed-capacity sliding window for computing sign tuples.
Generic parameter W is the window width. All storage is stack-allocated.
No heap allocation, no std, no unsafe.
Implementations§
Source§impl<const W: usize> SignWindow<W>
impl<const W: usize> SignWindow<W>
Sourcepub fn push(
&mut self,
norm: f32,
sub_threshold: bool,
snr_floor: SnrFloor,
) -> SignTuple
pub fn push( &mut self, norm: f32, sub_threshold: bool, snr_floor: SnrFloor, ) -> SignTuple
Push a new residual norm observation and return the current sign tuple.
If sub_threshold is true (SNR below floor), the norm is stored as-is
but drift and slew are forced to zero per the missingness-aware signal
validity rule (paper §IX-C, §B.2).
Trait Implementations§
Auto Trait Implementations§
impl<const W: usize> Freeze for SignWindow<W>
impl<const W: usize> RefUnwindSafe for SignWindow<W>
impl<const W: usize> Send for SignWindow<W>
impl<const W: usize> Sync for SignWindow<W>
impl<const W: usize> Unpin for SignWindow<W>
impl<const W: usize> UnsafeUnpin for SignWindow<W>
impl<const W: usize> UnwindSafe for SignWindow<W>
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