pub struct BatchStft<T: Float + FftNum> { /* private fields */ }Implementations§
Source§impl<T: Float + FftNum + FromPrimitive + Debug> BatchStft<T>
impl<T: Float + FftNum + FromPrimitive + Debug> BatchStft<T>
pub fn new(config: StftConfig<T>) -> Self
pub fn process(&self, signal: &[T]) -> Spectrum<T>
pub fn process_padded(&self, signal: &[T], pad_mode: PadMode) -> Spectrum<T>
Sourcepub fn process_into(&self, signal: &[T], spectrum: &mut Spectrum<T>) -> bool
pub fn process_into(&self, signal: &[T], spectrum: &mut Spectrum<T>) -> bool
Process signal and write into a pre-allocated Spectrum. The spectrum must have the correct dimensions (num_frames x freq_bins). Returns true if successful, false if dimensions don’t match.
Auto Trait Implementations§
impl<T> Freeze for BatchStft<T>
impl<T> !RefUnwindSafe for BatchStft<T>
impl<T> Send for BatchStft<T>
impl<T> Sync for BatchStft<T>
impl<T> Unpin for BatchStft<T>where
T: Unpin,
impl<T> !UnwindSafe for BatchStft<T>
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