um meine FFT besser zu verstehen teste ich die Funktion gerade mit folgendem Code:
Code: Alles auswählen
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from scipy import fft
x = np.linspace(0,2*np.pi,100)
y = np.sin(x)
X = fft.rfftfreq(x.size,1/100)
Y = np.abs(fft.rfft(y))
fig, ax = plt.subplots()
ax.plot(X,Y)
ax.set_xlim(0,2*np.pi)
Soweit so gut, der Peak der FFT liegt bei 1 Hz.
Was sagt mir aber die Amplitude der FFT? Die liegt bei ~50 obwohl der Sinus eine Amplitude von 1 hat.