pub enum ThresholdMethod {
Hard,
Soft,
Garrote,
Firm {
t2: f64,
},
}Expand description
Thresholding method for wavelet denoising.
Variants§
Hard
Hard thresholding: coefficients with |c| < τ are set to 0.
Soft
Soft thresholding: shrinks coefficients toward zero by τ.
Garrote
Garrote (non-negative garrote): c → c - τ²/c for |c| > τ.
Firm
Firm (semi-soft): linear transition between hard and soft.
Trait Implementations§
Source§impl Clone for ThresholdMethod
impl Clone for ThresholdMethod
Source§fn clone(&self) -> ThresholdMethod
fn clone(&self) -> ThresholdMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThresholdMethod
impl Debug for ThresholdMethod
Source§impl PartialEq for ThresholdMethod
impl PartialEq for ThresholdMethod
Source§fn eq(&self, other: &ThresholdMethod) -> bool
fn eq(&self, other: &ThresholdMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThresholdMethod
impl StructuralPartialEq for ThresholdMethod
Auto Trait Implementations§
impl Freeze for ThresholdMethod
impl RefUnwindSafe for ThresholdMethod
impl Send for ThresholdMethod
impl Sync for ThresholdMethod
impl Unpin for ThresholdMethod
impl UnsafeUnpin for ThresholdMethod
impl UnwindSafe for ThresholdMethod
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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