pub struct DTCWTResult<T> {
pub coefficients: Vec<Vec<Vec<Complex<T>>>>,
pub lowpass: Vec<Complex<T>>,
pub approximations: Vec<(Vec<T>, Vec<T>)>,
pub scales: Vec<usize>,
pub original_length: usize,
pub config: DTCWTConfig,
}Expand description
Result of Dual-Tree Complex Wavelet Transform
Fields§
§coefficients: Vec<Vec<Vec<Complex<T>>>>Complex wavelet coefficients for each level
coefficients[level][orientation] where orientation is 6 complex subbands
lowpass: Vec<Complex<T>>Lowpass coefficients (final approximation)
approximations: Vec<(Vec<T>, Vec<T>)>Approximation coefficients at each level (for proper reconstruction)
scales: Vec<usize>Scale information for each level
original_length: usizeOriginal signal length
config: DTCWTConfigConfiguration used
Implementations§
Source§impl<T: Float + FromPrimitive + Clone + Sum> DTCWTResult<T>
impl<T: Float + FromPrimitive + Clone + Sum> DTCWTResult<T>
Sourcepub fn directional_angles(&self) -> Vec<Vec<Vec<f64>>>
pub fn directional_angles(&self) -> Vec<Vec<Vec<f64>>>
Extract directional information at each level
Returns angles in radians for each coefficient indicating the dominant direction of the feature detected.
Sourcepub fn energy_by_orientation(&self) -> Vec<Vec<T>>
pub fn energy_by_orientation(&self) -> Vec<Vec<T>>
Compute energy at each level and orientation
Sourcepub fn dominant_directions(&self) -> Vec<usize>
pub fn dominant_directions(&self) -> Vec<usize>
Detect dominant directions at each scale
Returns the orientation with maximum energy at each level. Useful for identifying trend directions at different time scales.
Trait Implementations§
Source§impl<T: Clone> Clone for DTCWTResult<T>
impl<T: Clone> Clone for DTCWTResult<T>
Source§fn clone(&self) -> DTCWTResult<T>
fn clone(&self) -> DTCWTResult<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for DTCWTResult<T>
impl<T> RefUnwindSafe for DTCWTResult<T>where
T: RefUnwindSafe,
impl<T> Send for DTCWTResult<T>where
T: Send,
impl<T> Sync for DTCWTResult<T>where
T: Sync,
impl<T> Unpin for DTCWTResult<T>where
T: Unpin,
impl<T> UnwindSafe for DTCWTResult<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
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