pub struct FilterBankConfig {
pub j_max: usize,
pub quality_factors: Vec<usize>,
pub signal_length: usize,
pub xi0: f64,
pub sigma: Option<f64>,
}Expand description
Configuration for a Morlet wavelet filter bank.
Fields§
§j_max: usizeNumber of octaves (logarithmic scale range)
quality_factors: Vec<usize>Quality factors per order (wavelets per octave for each scattering order)
signal_length: usizeLength of the input signal
xi0: f64Center frequency of the mother wavelet (default: PI)
sigma: Option<f64>Bandwidth parameter sigma (default: computed from Q)
Implementations§
Source§impl FilterBankConfig
impl FilterBankConfig
Sourcepub fn new(
j_max: usize,
quality_factors: Vec<usize>,
signal_length: usize,
) -> Self
pub fn new( j_max: usize, quality_factors: Vec<usize>, signal_length: usize, ) -> Self
Create a new filter bank configuration with default parameters.
§Arguments
j_max- Number of octavesquality_factors- Quality factors per order (e.g.,[8, 1]for Q1=8, Q2=1)signal_length- Length of the input signal
Sourcepub fn with_sigma(self, sigma: f64) -> Self
pub fn with_sigma(self, sigma: f64) -> Self
Set a custom bandwidth parameter.
Trait Implementations§
Source§impl Clone for FilterBankConfig
impl Clone for FilterBankConfig
Source§fn clone(&self) -> FilterBankConfig
fn clone(&self) -> FilterBankConfig
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 FilterBankConfig
impl RefUnwindSafe for FilterBankConfig
impl Send for FilterBankConfig
impl Sync for FilterBankConfig
impl Unpin for FilterBankConfig
impl UnsafeUnpin for FilterBankConfig
impl UnwindSafe for FilterBankConfig
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