pub struct StreamingDWT<T: SignalType> { /* private fields */ }Expand description
Streaming DWT implementation for real-time signal processing
Implementations§
Source§impl<T: SignalType + 'static> StreamingDWT<T>
impl<T: SignalType + 'static> StreamingDWT<T>
Sourcepub fn new(wavelet: Box<dyn Wavelet>, window: WindowConfig) -> Self
pub fn new(wavelet: Box<dyn Wavelet>, window: WindowConfig) -> Self
Create new streaming DWT
Sourcepub fn with_boundary_mode(
wavelet: Box<dyn Wavelet>,
window: WindowConfig,
boundary_mode: BoundaryMode,
) -> Self
pub fn with_boundary_mode( wavelet: Box<dyn Wavelet>, window: WindowConfig, boundary_mode: BoundaryMode, ) -> Self
Create with specific boundary mode
Sourcepub fn update(&mut self, tick: T) -> Result<Option<CoefficientUpdate<T>>>
pub fn update(&mut self, tick: T) -> Result<Option<CoefficientUpdate<T>>>
Process single tick
Sourcepub fn current_coefficients(&self) -> &StreamingCoefficients<T>
pub fn current_coefficients(&self) -> &StreamingCoefficients<T>
Get current coefficients without update
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
Get current buffer length
Auto Trait Implementations§
impl<T> Freeze for StreamingDWT<T>
impl<T> !RefUnwindSafe for StreamingDWT<T>
impl<T> Send for StreamingDWT<T>
impl<T> Sync for StreamingDWT<T>
impl<T> Unpin for StreamingDWT<T>where
T: Unpin,
impl<T> !UnwindSafe for StreamingDWT<T>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more