pub struct SignWindow<const W: usize> { /* private fields */ }Expand description
Fixed-capacity sliding window for computing sign tuples from a streaming residual sequence.
Generic parameter W is the drift-window width. All storage is
stack-allocated: no heap, no unsafe, no std.
Implementations§
Source§impl<const W: usize> SignWindow<W>
impl<const W: usize> SignWindow<W>
Sourcepub fn push(&mut self, norm: f64, below_floor: bool) -> SignTuple
pub fn push(&mut self, norm: f64, below_floor: bool) -> SignTuple
Insert the next residual norm and return the current sign tuple.
When below_floor is true, the sample is stored (so future
diffs see it) but drift and slew are forced to zero for this
observation to avoid attributing structural meaning to
noise-floor samples.
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