MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / dft

Function dft

contents/cooley_tukey/code/python/fft.py:6–12  ·  view source on GitHub ↗
(X)

Source from the content-addressed store, hash-verified

4
5
6def dft(X):
7 N = len(X)
8 temp = [0] * N
9 for i in range(N):
10 for k in range(N):
11 temp[i] += X[k] * exp(-2.0j * pi * i * k / N)
12 return temp
13
14
15def cooley_tukey(X):

Callers 1

fft.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected