pub struct EMDResult {
pub imfs: Vec<IMF>,
pub residue: Vec<f64>,
pub iterations: Vec<usize>,
}Expand description
EMD result containing all IMFs and the residue
Fields§
§imfs: Vec<IMF>The extracted IMFs (from highest to lowest frequency)
residue: Vec<f64>The residue (trend component)
iterations: Vec<usize>Number of sifting iterations for each IMF
Implementations§
Source§impl EMDResult
impl EMDResult
Sourcepub fn reconstruct(&self) -> Vec<f64>
pub fn reconstruct(&self) -> Vec<f64>
Reconstruct the original signal from IMFs and residue
Sourcepub fn get_trend(&self, n_components: usize) -> Vec<f64>
pub fn get_trend(&self, n_components: usize) -> Vec<f64>
Get the trend component (sum of low-frequency IMFs and residue)
Sourcepub fn validate_imfs(&self) -> Vec<bool>
pub fn validate_imfs(&self) -> Vec<bool>
Validate the quality of extracted IMFs
Returns a vector of booleans indicating which IMFs satisfy the IMF conditions
Sourcepub fn all_imfs_valid(&self) -> bool
pub fn all_imfs_valid(&self) -> bool
Check if all IMFs are valid
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EMDResult
impl RefUnwindSafe for EMDResult
impl Send for EMDResult
impl Sync for EMDResult
impl Unpin for EMDResult
impl UnwindSafe for EMDResult
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