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

w[n] = 1.0

w[n] = TRI(2n/N)

w[n] = 0.54 - (0.46 * COS(n/N) )

w[n] = 0.5 * (1.0 - COS(n/N) )

w[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) )

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))

Maximum number of FFT window types supported.

Makes sure this enum is signed 32bit.

Trait Implementations

impl Clone for DspFftWindow
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DspFftWindow
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialOrd for DspFftWindow
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.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]

[src]

Formats the value using the given formatter.

impl Copy for DspFftWindow
[src]