Skip to content

Commit 33d6dab

Browse files
authored
Update README.md
1 parent 4625ee0 commit 33d6dab

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
11
# fft_rs
2+
Fast Fourier Transform implementation in Rust.
3+
4+
https://en.wikipedia.org/wiki/Fast_Fourier_transform & DFT
5+
6+
Usage
7+
let values: Vec<f64> = vec![0.2, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8];
8+
9+
// compute the FFT (Fast Fourier Transform)
10+
let fft_res = fft(&values);
11+
12+
// compute the IFFT (Inverse Fast Fourier Transform)
13+
let ifft_res = ifft(&fft_res);
14+
15+
16+
// Also, available directly (and slower) DFT & IDFT:
17+
18+
// compute the DFT (Discrete Fourier Transform)
19+
let dft_res = dft(&values);
20+
21+
// compute the IDFT (Inverse Discrete Fourier Transform)
22+
let idft_res = idft(&dft_res)

0 commit comments

Comments
 (0)