pub struct ScatteringConfig {
pub j_max: usize,
pub quality_factors: Vec<usize>,
pub max_order: usize,
pub average: bool,
pub oversampling: usize,
}Expand description
Configuration for the scattering transform.
Fields§
§j_max: usizeNumber of octaves
quality_factors: Vec<usize>Quality factors per order (e.g., [8, 1])
max_order: usizeMaximum scattering order (0, 1, or 2)
average: boolWhether to average (convolve with phi) the output
oversampling: usizeSubsampling factor for output (power of 2)
Implementations§
Source§impl ScatteringConfig
impl ScatteringConfig
Sourcepub fn new(j_max: usize, quality_factors: Vec<usize>) -> Self
pub fn new(j_max: usize, quality_factors: Vec<usize>) -> Self
Create a default scattering config.
§Arguments
j_max- Number of octavesquality_factors- Quality factors per order
Sourcepub fn with_max_order(self, order: usize) -> Self
pub fn with_max_order(self, order: usize) -> Self
Set maximum scattering order.
Sourcepub fn with_average(self, average: bool) -> Self
pub fn with_average(self, average: bool) -> Self
Set whether to average the output with the scaling function.
Sourcepub fn with_oversampling(self, oversampling: usize) -> Self
pub fn with_oversampling(self, oversampling: usize) -> Self
Set oversampling factor.
Trait Implementations§
Source§impl Clone for ScatteringConfig
impl Clone for ScatteringConfig
Source§fn clone(&self) -> ScatteringConfig
fn clone(&self) -> ScatteringConfig
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 ScatteringConfig
impl RefUnwindSafe for ScatteringConfig
impl Send for ScatteringConfig
impl Sync for ScatteringConfig
impl Unpin for ScatteringConfig
impl UnsafeUnpin for ScatteringConfig
impl UnwindSafe for ScatteringConfig
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