impemented FFT with numpy and recursion
This commit is contained in:
@ -3,7 +3,7 @@ from math import sin, cos, pi, sqrt
|
||||
import plotly.graph_objs as go
|
||||
from plotly.subplots import make_subplots
|
||||
|
||||
from FFT import FFT
|
||||
from FFT import FFT_real
|
||||
|
||||
FP_acc = 1e3
|
||||
|
||||
@ -156,7 +156,7 @@ def DFT_naive_FP(inp_float, out):
|
||||
|
||||
|
||||
def FFT_naive(inp, out):
|
||||
fft_out = FFT(inp)
|
||||
fft_out = FFT_real(inp)
|
||||
for i in range(len(fft_out)):
|
||||
val = fft_out[i]/len(inp)
|
||||
if (i < len(out)):
|
||||
|
||||
Reference in New Issue
Block a user