pub struct BoxFilter<T: Float> { /* private fields */ }Expand description
Rectangular moving average filter (FIR).
A filter of length 1 has order 0 (i.e. does nothing).
Implementations§
Source§impl<T: Float> BoxFilter<T>
impl<T: Float> BoxFilter<T>
Sourcepub fn new(max_length: usize) -> Self
pub fn new(max_length: usize) -> Self
Create a new box filter with the specified maximum length
Sourcepub fn resize(&mut self, max_length: usize)
pub fn resize(&mut self, max_length: usize)
Sets the maximum size (and current size, and resets)
Auto Trait Implementations§
impl<T> Freeze for BoxFilter<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoxFilter<T>where
T: RefUnwindSafe,
impl<T> Send for BoxFilter<T>where
T: Send,
impl<T> Sync for BoxFilter<T>where
T: Sync,
impl<T> Unpin for BoxFilter<T>where
T: Unpin,
impl<T> UnwindSafe for BoxFilter<T>where
T: UnwindSafe,
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