pub struct ComplexWaveletResult<T> {
pub coefficients: Vec<Vec<Complex<T>>>,
pub scales: Vec<T>,
pub time: Vec<T>,
pub sampling_freq: T,
pub wavelet_info: String,
}Expand description
Complex Wavelet Analysis Result
Enhanced result structure for complex wavelet analysis with financial-specific metrics.
Fields§
§coefficients: Vec<Vec<Complex<T>>>Complex coefficients [scales x time]
scales: Vec<T>Scale values
time: Vec<T>Time points
sampling_freq: TSampling frequency
wavelet_info: StringWavelet parameters
Implementations§
Source§impl<T: Clone + Float + FromPrimitive> ComplexWaveletResult<T>
impl<T: Clone + Float + FromPrimitive> ComplexWaveletResult<T>
Sourcepub fn instantaneous_amplitude(&self) -> Vec<Vec<T>>
pub fn instantaneous_amplitude(&self) -> Vec<Vec<T>>
Compute instantaneous amplitude (envelope)
Sourcepub fn instantaneous_phase(&self) -> Vec<Vec<f64>>
pub fn instantaneous_phase(&self) -> Vec<Vec<f64>>
Compute instantaneous phase
Sourcepub fn instantaneous_frequency(&self) -> Vec<Vec<f64>>
pub fn instantaneous_frequency(&self) -> Vec<Vec<f64>>
Compute instantaneous frequency
Calculates the time derivative of the instantaneous phase to obtain instantaneous frequency at each point.
Sourcepub fn detect_regime_changes(&self, threshold_std: f64) -> Vec<Vec<usize>>
pub fn detect_regime_changes(&self, threshold_std: f64) -> Vec<Vec<usize>>
Detect regime changes based on instantaneous frequency
Identifies points where instantaneous frequency changes significantly, indicating potential regime shifts.
Sourcepub fn coherence_with(&self, other: &Self) -> Vec<Vec<T>>
pub fn coherence_with(&self, other: &Self) -> Vec<Vec<T>>
Compute wavelet coherence for cross-asset analysis
Calculates the coherence between this result and another complex wavelet result for cross-asset relationship analysis.
Trait Implementations§
Source§impl<T: Clone> Clone for ComplexWaveletResult<T>
impl<T: Clone> Clone for ComplexWaveletResult<T>
Source§fn clone(&self) -> ComplexWaveletResult<T>
fn clone(&self) -> ComplexWaveletResult<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 ComplexWaveletResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ComplexWaveletResult<T>where
T: RefUnwindSafe,
impl<T> Send for ComplexWaveletResult<T>where
T: Send,
impl<T> Sync for ComplexWaveletResult<T>where
T: Sync,
impl<T> Unpin for ComplexWaveletResult<T>where
T: Unpin,
impl<T> UnwindSafe for ComplexWaveletResult<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