pub struct TFConfig {
pub transform_type: TFTransform,
pub window_size: usize,
pub hop_size: usize,
pub window_function: WindowFunction,
pub zero_padding: usize,
pub wavelet_type: WaveletType,
pub frequency_range: (f64, f64),
pub frequency_bins: usize,
pub resample_factor: usize,
pub max_size: usize,
}Expand description
Configuration for time-frequency transforms
Fields§
§transform_type: TFTransformType of transform
window_size: usizeWindow size for STFT
hop_size: usizeHop size (step size between windows) for STFT
window_function: WindowFunctionWindow function for STFT
zero_padding: usizeZero padding factor for STFT (e.g., 2 for doubling the window size)
wavelet_type: WaveletTypeWavelet type for CWT
frequency_range: (f64, f64)Frequency range for CWT (in Hz, if sample rate is provided)
frequency_bins: usizeNumber of frequency bins for CWT
resample_factor: usizeRe-sampling factor for reassignment
max_size: usizeMaximum size for computation to avoid test timeouts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TFConfig
impl RefUnwindSafe for TFConfig
impl Send for TFConfig
impl Sync for TFConfig
impl Unpin for TFConfig
impl UnwindSafe for TFConfig
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