pub struct Tanh<T>(/* private fields */);
Expand description
Smoothly maps a signal of any range into (-1, 1)
For each input sample x
, outputs x.tanh()
. Similar to Reinhard
, but
distorts quiet sounds less, and loud sounds more.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Tanh<T>where
T: RefUnwindSafe,
impl<T> Send for Tanh<T>where
T: Send,
impl<T> Sync for Tanh<T>where
T: Sync,
impl<T> Unpin for Tanh<T>where
T: Unpin,
impl<T> UnwindSafe for Tanh<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