struct MovingAverageFilter {
buffer: VecDeque<f32>,
window_size: usize,
sum: f32,
}
Fields§
§buffer: VecDeque<f32>
§window_size: usize
§sum: f32
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MovingAverageFilter
impl RefUnwindSafe for MovingAverageFilter
impl Send for MovingAverageFilter
impl Sync for MovingAverageFilter
impl Unpin for MovingAverageFilter
impl UnwindSafe for MovingAverageFilter
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