#[repr(C)]pub enum DspFftWindow {
Rect = 0,
Triangle = 1,
Hamming = 2,
Hanning = 3,
BlackMan = 4,
BlackManHarris = 5,
Max = 6,
ForceInt = 65_536,
}
Expand description
List of windowing methods used in spectrum analysis to reduce leakage / transient signals intefering with the analysis. This is a problem with analysis of continuous signals that only have a small portion of the signal sample (the fft window size). Windowing the signal with a curve or triangle tapers the sides of the fft window to help alleviate this problem.
Variants§
Rect = 0
w[n] = 1.0
Triangle = 1
w[n] = TRI(2n/N)
Hamming = 2
w[n] = 0.54 - (0.46 * COS(n/N) )
Hanning = 3
w[n] = 0.5 * (1.0 - COS(n/N) )
BlackMan = 4
w[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) )
BlackManHarris = 5
w[n] = 0.35875 - (0.48829 * COS(1.0 * n/N)) + (0.14128 * COS(2.0 * n/N)) - (0.01168 * COS(3.0 * n/N))
Max = 6
Maximum number of FFT window types supported.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
Trait Implementations§
Source§impl Clone for DspFftWindow
impl Clone for DspFftWindow
Source§fn clone(&self) -> DspFftWindow
fn clone(&self) -> DspFftWindow
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 moreSource§impl Debug for DspFftWindow
impl Debug for DspFftWindow
Source§impl PartialEq for DspFftWindow
impl PartialEq for DspFftWindow
Source§impl PartialOrd for DspFftWindow
impl PartialOrd for DspFftWindow
impl Copy for DspFftWindow
impl StructuralPartialEq for DspFftWindow
Auto Trait Implementations§
impl Freeze for DspFftWindow
impl RefUnwindSafe for DspFftWindow
impl Send for DspFftWindow
impl Sync for DspFftWindow
impl Unpin for DspFftWindow
impl UnwindSafe for DspFftWindow
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