pub struct Smoother<T>where
T: Transcendental,{ /* private fields */ }Expand description
Экспоненциальное сглаживание (однополюсный фильтр)
Implementations§
Source§impl<T> Smoother<T>where
T: Transcendental,
impl<T> Smoother<T>where
T: Transcendental,
Sourcepub fn set_target(&mut self, target: T)
pub fn set_target(&mut self, target: T)
Установить целевое значение
Sourcepub fn process_sample(&mut self, input: T) -> T
pub fn process_sample(&mut self, input: T) -> T
Обработать один семпл (однополюсный фильтр низких частот)
Sourcepub fn set_current(&mut self, value: T)
pub fn set_current(&mut self, value: T)
Мгновенно установить значение (без сглаживания)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Smoother<T>where
T: Freeze,
impl<T> RefUnwindSafe for Smoother<T>where
T: RefUnwindSafe,
impl<T> Send for Smoother<T>
impl<T> Sync for Smoother<T>
impl<T> Unpin for Smoother<T>where
T: Unpin,
impl<T> UnsafeUnpin for Smoother<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Smoother<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