pub struct MexicanHat { /* private fields */ }Expand description
Mexican Hat (Ricker) Wavelet
The Mexican Hat wavelet is the negative normalized second derivative of a Gaussian function. It’s real-valued and symmetric.
ψ(t) = (2/(√3σ π^(1/4))) * (1 - t²/σ²) * exp(-t²/2σ²)
Implementations§
Source§impl MexicanHat
impl MexicanHat
Sourcepub fn with_default_sigma() -> Self
pub fn with_default_sigma() -> Self
Create Mexican Hat wavelet with default σ = 1.0
Trait Implementations§
Source§impl Clone for MexicanHat
impl Clone for MexicanHat
Source§fn clone(&self) -> MexicanHat
fn clone(&self) -> MexicanHat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContinuousWavelet for MexicanHat
impl ContinuousWavelet for MexicanHat
Source§fn wavelet_function(&self, t: f64, scale: f64) -> Complex<f64>
fn wavelet_function(&self, t: f64, scale: f64) -> Complex<f64>
Get the wavelet function value at position t for scale a
Source§fn center_frequency(&self) -> f64
fn center_frequency(&self) -> f64
Get the center frequency of the wavelet
Source§fn is_complex(&self) -> bool
fn is_complex(&self) -> bool
Check if the wavelet is complex-valued
Source§impl Debug for MexicanHat
impl Debug for MexicanHat
Auto Trait Implementations§
impl Freeze for MexicanHat
impl RefUnwindSafe for MexicanHat
impl Send for MexicanHat
impl Sync for MexicanHat
impl Unpin for MexicanHat
impl UnwindSafe for MexicanHat
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