pub struct RecursiveMovingAverage<const N: usize> { /* private fields */ }Expand description
Const-generic N-point moving average filter implemented recursively (Steven W. Smith,
Ch. 15, Eq. 15-3): each sample is updated with a single add and subtract, instead of an
O(N) convolution sum.
Implementations§
Source§impl<const N: usize> RecursiveMovingAverage<N>
impl<const N: usize> RecursiveMovingAverage<N>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new N-point recursive moving average filter with empty history.
Trait Implementations§
Source§impl<const N: usize> Clone for RecursiveMovingAverage<N>
impl<const N: usize> Clone for RecursiveMovingAverage<N>
Source§fn clone(&self) -> RecursiveMovingAverage<N>
fn clone(&self) -> RecursiveMovingAverage<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Debug for RecursiveMovingAverage<N>
impl<const N: usize> Debug for RecursiveMovingAverage<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for RecursiveMovingAverage<N>
impl<const N: usize> RefUnwindSafe for RecursiveMovingAverage<N>
impl<const N: usize> Send for RecursiveMovingAverage<N>
impl<const N: usize> Sync for RecursiveMovingAverage<N>
impl<const N: usize> Unpin for RecursiveMovingAverage<N>
impl<const N: usize> UnsafeUnpin for RecursiveMovingAverage<N>
impl<const N: usize> UnwindSafe for RecursiveMovingAverage<N>
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