pub struct TimedWindowFilter<T, K: KernelGenerator> { /* private fields */ }
Available on crate feature
std
only.Expand description
Time-series data downsampling based on a convolution kernel. Stores up to 2x the time window for nyquist sampling reasons. Once it has a full time window duration, will run the kernel and provide the result of the convolution operation.
Implementations§
Source§impl<T: Copy, K: KernelGenerator> TimedWindowFilter<T, K>
impl<T: Copy, K: KernelGenerator> TimedWindowFilter<T, K>
pub fn new( window_duration: Duration, bin_strategy: WindowBinStrategy, kernel_generator: Box<dyn KernelBuilder<Output = K>>, ) -> Self
pub fn add_sample(&mut self, sample: Sample<T>) -> Option<Sample<T>>
Auto Trait Implementations§
impl<T, K> Freeze for TimedWindowFilter<T, K>
impl<T, K> !RefUnwindSafe for TimedWindowFilter<T, K>
impl<T, K> !Send for TimedWindowFilter<T, K>
impl<T, K> !Sync for TimedWindowFilter<T, K>
impl<T, K> Unpin for TimedWindowFilter<T, K>
impl<T, K> !UnwindSafe for TimedWindowFilter<T, K>
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