pub struct SpectralFlux { /* private fields */ }Implementations§
Source§impl SpectralFlux
impl SpectralFlux
pub fn new(window_size: usize) -> Self
pub fn reallocate(&mut self, window_size: usize)
pub fn novelty(&self) -> f32
pub fn clear(&mut self)
pub fn power_spectrum(&self) -> &[f32]
pub fn power_spectrum_prev(&self) -> &[f32]
pub fn d_power(&self) -> &[f32]
pub fn process_window<C: CompressionFunction>( &mut self, window: &[f32], window_func: WindowFunctionType, compression_func: &C, ) -> bool
Auto Trait Implementations§
impl Freeze for SpectralFlux
impl RefUnwindSafe for SpectralFlux
impl Send for SpectralFlux
impl Sync for SpectralFlux
impl Unpin for SpectralFlux
impl UnwindSafe for SpectralFlux
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