pub struct WaveletPacketNode {
pub coeffs: Vec<f64>,
pub level: usize,
pub index: usize,
}Expand description
A single node in the wavelet packet tree.
The node stores the subband coefficients and its position in the tree.
Position is identified by (level, index) where index ∈ [0, 2^level).
Fields§
§coeffs: Vec<f64>Subband coefficients at this node.
level: usizeDecomposition level (0 = root, i.e. the original signal).
index: usizeNode index within the level (frequency-ordered).
Implementations§
Trait Implementations§
Source§impl Clone for WaveletPacketNode
impl Clone for WaveletPacketNode
Source§fn clone(&self) -> WaveletPacketNode
fn clone(&self) -> WaveletPacketNode
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 Freeze for WaveletPacketNode
impl RefUnwindSafe for WaveletPacketNode
impl Send for WaveletPacketNode
impl Sync for WaveletPacketNode
impl Unpin for WaveletPacketNode
impl UnsafeUnpin for WaveletPacketNode
impl UnwindSafe for WaveletPacketNode
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