Need python script to calculate digits from a data file to FFT (fast fourier transformation) values.
I have found this code for FFT which works (see below) but it seems to take values from the array given. I want the code to take values from a file and export FFT values to a different file.
from cmath import exp, pi
if N<=1:return x
T=[exp(-2j*pi*k/N)*odd[k] for k in range (N//2)]
return [even[k]+T[k]for k in range(N//2)]+\
[even[k]-T[k] for k in range(N//2)]
print( ' '.join("%[url removed, login to view]" % abs(f)
for f in fft([1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0])))
Décerné à :
Dear Client. We are a web and mobile development team in China. We can handle this task within 1 hour. We would like to discuss more detail about the requirements with you. Thanks for your reply, Crusader.