pub struct Fourier<Flt> { /* private fields */ }
Expand description
Block performing a Fourier analysis
Note that Fourier::new
and Fourier::with_window
will result in the
DC bin at index 0
and negative frequencies being located in the second
half.
To rotate the DC frequency to the center (and have negative frequencies
left of it and positive frequencies right of it), use
Fourier::new_center_dc
or Fourier::with_window_center_dc
,
respectively.
In case of an even Chunk
length n
, the rotation will result in the
DC bin being at index n / 2
.
Implementations§
source§impl<Flt> Fourier<Flt>where
Flt: Float,
impl<Flt> Fourier<Flt>where
Flt: Float,
sourcepub fn new_center_dc() -> Self
pub fn new_center_dc() -> Self
Create Fourier
block without windowing but rotating DC to center
sourcepub fn with_window<W>(window: W) -> Selfwhere
W: Window + Send + 'static,
pub fn with_window<W>(window: W) -> Selfwhere
W: Window + Send + 'static,
Create Fourier
block with windowing
sourcepub fn with_window_center_dc<W>(window: W) -> Selfwhere
W: Window + Send + 'static,
pub fn with_window_center_dc<W>(window: W) -> Selfwhere
W: Window + Send + 'static,
Create Fourier
block with windowing and rotating DC to center
Trait Implementations§
source§impl<Flt> Consumer<Signal<Complex<Flt>>> for Fourier<Flt>
impl<Flt> Consumer<Signal<Complex<Flt>>> for Fourier<Flt>
source§fn receiver_connector(&self) -> &ReceiverConnector<Signal<Complex<Flt>>>
fn receiver_connector(&self) -> &ReceiverConnector<Signal<Complex<Flt>>>
Obtain reference to
ReceiverConnector
source§fn feed_from_none(&self)
fn feed_from_none(&self)
Disconnect
Consumer
from any connected Producer
if connected