Enum rfmod::DspFftWindow
[−]
[src]
#[repr(C)]pub enum DspFftWindow { Rect, Triangle, Hamming, Hanning, BlackMan, BlackManHarris, Max, ForceInt, }
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
Rectw[n] = 1.0
Trianglew[n] = TRI(2n/N)
Hammingw[n] = 0.54 - (0.46 * COS(n/N) )
Hanningw[n] = 0.5 * (1.0 - COS(n/N) )
BlackManw[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) )
BlackManHarrisw[n] = 0.35875 - (0.48829 * COS(1.0 * n/N)) + (0.14128 * COS(2.0 * n/N)) - (0.01168 * COS(3.0 * n/N))
MaxMaximum number of FFT window types supported.
ForceIntMakes sure this enum is signed 32bit.
Trait Implementations
impl Clone for DspFftWindow[src]
fn clone(&self) -> DspFftWindow[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for DspFftWindow[src]
fn eq(&self, __arg_0: &DspFftWindow) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl PartialOrd for DspFftWindow[src]
fn partial_cmp(&self, __arg_0: &DspFftWindow) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for DspFftWindow[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more