Last active
December 13, 2023 11:11
Fourier Transform in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signal <- c(1, 0, 0, 1) | |
fft_result <- fft(signal) | |
print(fft_result) |
Input:
1, 0, 0, 1
Result:
2+0i 1+1i 0+0i 1-1i
Input:
1, 0, 1
Result:
2.0+0i 0.5+0.8660254i 0.5-0.8660254i
Input:
1, 0, 1, 1
Result:
3+0i 0+1i 1+0i 0-1i
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Introduction to Fast Fourier Transform in R