13 lines
147 B
Python
13 lines
147 B
Python
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
|
|
|