pub struct PoddedWavelet;Expand description
Physics-specific wavelet-based analysis tools.
Provides turbulence spectrum estimation, shock detection, and intermittency measurement using wavelet methods.
Implementations§
Source§impl PoddedWavelet
impl PoddedWavelet
Sourcepub fn turbulence_spectrum_wavelet(
velocity_field: &[f64],
dt: f64,
) -> Vec<(f64, f64)>
pub fn turbulence_spectrum_wavelet( velocity_field: &[f64], dt: f64, ) -> Vec<(f64, f64)>
Estimate the turbulence energy spectrum from a velocity field using the Haar DWT.
Returns a list of (frequency, energy) pairs, one per DWT level.
dt is the sampling interval.
Sourcepub fn shock_detection(signal: &[f64], threshold: f64) -> Vec<usize>
pub fn shock_detection(signal: &[f64], threshold: f64) -> Vec<usize>
Detect discontinuities (shocks) in a signal using first-difference magnitudes as a simple multi-scale shock indicator.
Returns the sample indices where the absolute first difference
|signal[i+1] - signal[i]| exceeds threshold.
Sourcepub fn intermittency_measure(signal: &[f64], scale: f64) -> f64
pub fn intermittency_measure(signal: &[f64], scale: f64) -> f64
Compute a wavelet-based intermittency measure at scale scale.
Returns the kurtosis of the wavelet coefficients at the given scale, normalized so that a Gaussian signal returns 0.
Auto Trait Implementations§
impl Freeze for PoddedWavelet
impl RefUnwindSafe for PoddedWavelet
impl Send for PoddedWavelet
impl Sync for PoddedWavelet
impl Unpin for PoddedWavelet
impl UnsafeUnpin for PoddedWavelet
impl UnwindSafe for PoddedWavelet
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.