ifft

Function ifft 

Source
pub fn ifft(input_real: Vec<f32>, input_imag: Vec<f32>) -> Vec<f32>
Expand description

Computes the Inverse Fast Fourier Transform (IFFT) of the given real and imaginary parts.

This function takes the real and imaginary parts of a frequency domain signal and returns the corresponding time domain signal as a vector of real numbers.

§Parameters

  • input_real: A vector of f32 representing the real part of the frequency domain signal.
  • input_imag: A vector of f32 representing the imaginary part of the frequency domain signal.

§Returns

A vector of f32 representing the reconstructed time domain signal.

§Example

let real = vec![0.0, 1.0, 0.0, 0.0];
let imag = vec![0.0, 0.0, 0.0, 0.0];
let time_domain = ifft(real, imag);