RealToComplex

Trait RealToComplex 

Source
pub trait RealToComplex<T: Float>: Send + Sync {
    // Required methods
    fn process(&self, input: &[T], output: &mut [Complex<T>]);
    fn len(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn output_len(&self) -> usize { ... }
}
Expand description

Trait for real-to-complex FFT operations

This trait defines the interface for forward FFT transforms that convert real-valued input data to complex-valued frequency domain output.

Required Methods§

Source

fn process(&self, input: &[T], output: &mut [Complex<T>])

Process a real-valued input and produce complex-valued output

§Arguments
  • input - Real-valued input samples
  • output - Complex-valued frequency domain output (length = input.len()/2 + 1)
Source

fn len(&self) -> usize

Get the length of the input this FFT is configured for

Provided Methods§

Source

fn is_empty(&self) -> bool

Check if this FFT is empty (length 0)

Source

fn output_len(&self) -> usize

Get the length of the output this FFT produces

Implementors§