10 Nov
2022
10 Nov
'22
5:59 p.m.
basically i used the same fourier expression, but found it by trial rather than referring to anything, and verified it in pdb:
data array([0.17457665, 0.27853706, 0.92643594, 0.9938617 ]) [abs(((np.exp(2j * sample_idx * np.pi * np.fft.fftfreq(len(data)))) * np.fft.fft(data)).sum()) / len(data) for sample_idx in [0,1,2,3]]