pub struct StftConfig {
pub n_fft: usize,
pub hop_length: usize,
pub win_length: usize,
pub center: bool,
pub pad_mode: PadMode,
pub window: WindowKind,
pub spectrum: SpectrumKind,
pub normalization: SpectralNormalization,
pub drop_last_frame: bool,
}Fields§
§n_fft: usize§hop_length: usize§win_length: usize§center: bool§pad_mode: PadMode§window: WindowKind§spectrum: SpectrumKind§normalization: SpectralNormalization§drop_last_frame: boolImplementations§
Source§impl StftConfig
impl StftConfig
pub const fn frequency_bin_count(self) -> usize
pub fn centered_input_len(self, input_len: usize) -> Result<usize>
pub fn frame_count(self, input_len: usize) -> Result<usize>
Trait Implementations§
Source§impl Clone for StftConfig
impl Clone for StftConfig
Source§fn clone(&self) -> StftConfig
fn clone(&self) -> StftConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StftConfig
Source§impl Debug for StftConfig
impl Debug for StftConfig
Source§impl PartialEq for StftConfig
impl PartialEq for StftConfig
Source§fn eq(&self, other: &StftConfig) -> bool
fn eq(&self, other: &StftConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StftConfig
Auto Trait Implementations§
impl Freeze for StftConfig
impl RefUnwindSafe for StftConfig
impl Send for StftConfig
impl Sync for StftConfig
impl Unpin for StftConfig
impl UnsafeUnpin for StftConfig
impl UnwindSafe for StftConfig
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