arnaucube 2aab0a81b2 | 4 years ago | |
---|---|---|
.github/workflows | 4 years ago | |
benches | 4 years ago | |
src | 4 years ago | |
.gitignore | 4 years ago | |
Cargo.toml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago |
Fast Fourier Transform implementation in Rust.
https://en.wikipedia.org/wiki/Fast_Fourier_transform & DFT
let values: Vec<f64> = vec![0.2, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8];
// compute the FFT (Fast Fourier Transform)
let fft_res = fft(&values);
// compute the IFFT (Inverse Fast Fourier Transform)
let ifft_res = ifft(&fft_res);
// Also, available directly (and slower) DFT & IDFT:
// compute the DFT (Discrete Fourier Transform)
let dft_res = dft(&values);
// compute the IDFT (Inverse Discrete Fourier Transform)
let idft_res = idft(&dft_res);