pub struct StreamingDenoiser<T: SignalType> { /* private fields */ }Expand description
Streaming denoiser using real-time wavelet thresholding
Implementations§
Source§impl<T: SignalType + 'static + PartialOrd> StreamingDenoiser<T>
impl<T: SignalType + 'static + PartialOrd> StreamingDenoiser<T>
Sourcepub fn new_dwt(
wavelet: Box<dyn Wavelet>,
window: WindowConfig,
config: StreamingDenoiseConfig<T>,
) -> Self
pub fn new_dwt( wavelet: Box<dyn Wavelet>, window: WindowConfig, config: StreamingDenoiseConfig<T>, ) -> Self
Create new streaming denoiser with DWT
Sourcepub fn new_modwt(
wavelet: Box<dyn Wavelet>,
window: WindowConfig,
config: StreamingDenoiseConfig<T>,
levels: usize,
) -> Self
pub fn new_modwt( wavelet: Box<dyn Wavelet>, window: WindowConfig, config: StreamingDenoiseConfig<T>, levels: usize, ) -> Self
Create new streaming denoiser with MODWT
Sourcepub fn new_swt(
wavelet: Box<dyn Wavelet>,
window: WindowConfig,
config: StreamingDenoiseConfig<T>,
levels: usize,
) -> Self
pub fn new_swt( wavelet: Box<dyn Wavelet>, window: WindowConfig, config: StreamingDenoiseConfig<T>, levels: usize, ) -> Self
Create new streaming denoiser with SWT
Sourcepub fn denoise(&mut self, value: T) -> Result<Option<StreamingDenoiseResult<T>>>
pub fn denoise(&mut self, value: T) -> Result<Option<StreamingDenoiseResult<T>>>
Process single value and return denoised result
Sourcepub fn current_quality(&self) -> Option<&DenoiseQuality>
pub fn current_quality(&self) -> Option<&DenoiseQuality>
Get current denoising quality metrics
Sourcepub fn average_snr_improvement(&self) -> f64
pub fn average_snr_improvement(&self) -> f64
Get average SNR improvement over recent history
Auto Trait Implementations§
impl<T> Freeze for StreamingDenoiser<T>where
T: Freeze,
impl<T> !RefUnwindSafe for StreamingDenoiser<T>
impl<T> Send for StreamingDenoiser<T>
impl<T> Sync for StreamingDenoiser<T>
impl<T> Unpin for StreamingDenoiser<T>where
T: Unpin,
impl<T> !UnwindSafe for StreamingDenoiser<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