main.py
11 lines
| 300 B
| text/x-python
|
PythonLexer
paul
|
r2 | from fft_8_decimation_in_frequency import FFT8DecimationInFrequency | ||
paul
|
r1 | |||
paul
|
r2 | N = 8 | ||
scale = 0 | ||||
fft8DecimationInFrequency = FFT8DecimationInFrequency(N, scale) | ||||
x = range(8) | ||||
fft_val = fft8DecimationInFrequency.fft(x) | ||||
dft_val = fft8DecimationInFrequency.dft(x) | ||||
print x | ||||
print "fft ", fft_val | ||||
print "dft ", dft_val | ||||