#[non_exhaustive]pub struct WaveletCoeffs {
pub approx: Vec<f64>,
pub details: Vec<Vec<f64>>,
pub levels: usize,
pub signal_len: usize,
pub family: WaveletFamily,
pub mode: BoundaryMode,
/* private fields */
}Expand description
Multi-level orthogonal DWT coefficients (the Mallat pyramid) for one signal.
Produced by decompose and inverted by reconstruct. Holds the final coarse
approximation, the per-level detail bands, and the metadata reconstruction needs
to return exactly the original number of samples.
The detail bands are stored finest-first: details[0] is the level-1 detail
(highest frequency, longest band) and details[levels - 1] is the coarsest detail
produced alongside the final approximation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.approx: Vec<f64>The final coarse approximation band (output of the last analysis level).
details: Vec<Vec<f64>>Per-level detail bands, finest-first: details[0] is the level-1 detail.
levels: usizeNumber of decomposition levels (== details.len()).
signal_len: usizeOriginal signal length, so reconstruct returns exactly this many samples.
family: WaveletFamilyThe wavelet family used for the transform (needed to rebuild the filter bank).
mode: BoundaryModeThe boundary mode used for the transform.
Implementations§
Source§impl WaveletCoeffs
impl WaveletCoeffs
Sourcepub fn signal_len(&self) -> usize
pub fn signal_len(&self) -> usize
Original signal length (the number of samples reconstruct returns).
Sourcepub fn detail(&self, level: usize) -> Option<&[f64]>
pub fn detail(&self, level: usize) -> Option<&[f64]>
The detail band at level (finest-first: 0 is the level-1 detail).
Returns None if level >= levels.
Sourcepub fn family(&self) -> &WaveletFamily
pub fn family(&self) -> &WaveletFamily
The wavelet family used for the transform.
Sourcepub fn mode(&self) -> BoundaryMode
pub fn mode(&self) -> BoundaryMode
The boundary mode used for the transform.
Trait Implementations§
Source§impl Clone for WaveletCoeffs
impl Clone for WaveletCoeffs
Source§fn clone(&self) -> WaveletCoeffs
fn clone(&self) -> WaveletCoeffs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WaveletCoeffs
impl Debug for WaveletCoeffs
Source§impl PartialEq for WaveletCoeffs
impl PartialEq for WaveletCoeffs
impl StructuralPartialEq for WaveletCoeffs
Auto Trait Implementations§
impl Freeze for WaveletCoeffs
impl RefUnwindSafe for WaveletCoeffs
impl Send for WaveletCoeffs
impl Sync for WaveletCoeffs
impl Unpin for WaveletCoeffs
impl UnsafeUnpin for WaveletCoeffs
impl UnwindSafe for WaveletCoeffs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.