From 601817e2b385d2332277bc6052cd92d7769c8763 Mon Sep 17 00:00:00 2001 From: Theodor Chikin Date: Wed, 8 Oct 2025 16:14:59 +0300 Subject: [PATCH] implemented FFT wrapper in naive_DFT.py. It imports FFT func from FFT.py and calculates data throw it --- FFT.py | 12 ++++++++++++ __pycache__/FFT.cpython-312.pyc | Bin 0 -> 624 bytes naive_DFT.py | 25 +++++++++++++------------ 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 FFT.py create mode 100644 __pycache__/FFT.cpython-312.pyc diff --git a/FFT.py b/FFT.py new file mode 100644 index 0000000..45ebfb5 --- /dev/null +++ b/FFT.py @@ -0,0 +1,12 @@ +import numpy as np + + + + +def FFT(inp): + inp = np.array(inp) + out = np.fft.fft(inp) + out = [val for val in np.abs(out)] + print(out) + return out + diff --git a/__pycache__/FFT.cpython-312.pyc b/__pycache__/FFT.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..90dfc2c78af45d69968fb5bc1039dfb4ba5759d2 GIT binary patch literal 624 zcmZuuziZn-6n=MSsj_O(HeNy}L)^g`sv&DBgoZ#N2}$EAP|QU?Vi{W!Cn>>Tfrkur z6R<;uq;%+9@>gW;QaY5PW-A1;m1=6HzAIJ;ArIcK?|t_^o$iZa=zx~<%l0wmU$QBT zPK$g7ixaTHCSBMfHrRp)>US8-^2zZ)Tlh8{&lx;A}ciAud4Z z$Q^gAquc?oy>*)0(oyeWl0s(*#?+!aV9~dzlF|V^qK9e;Qj*fRT$~)-@CgjaCb9{7 zO81~a)*4Di{V-Fw5WJr;*NrpAx1&r6h3Cf&mN5^ z&CS)<>rL|wx4mG!9mIj}S*^`vJ931}EvF^8&4szR^r~eAy)cPAf5&XLotU@WAQ7G; z%;n|g^AN=`3j_DdJ4Y)RhH#