I am trying to understand the numpy fft function because my data reduction is acting weird. But now that I have converted a simple sum of two sines, I get strange results. The peaks that I have are very high and a few dots around zero, smoothing the rest. Does anyone know what I can do wrong?
import numpy as np from numpy import exp, sqrt, pi, linspace from matplotlib import cm import matplotlib.pyplot as plt import scipy as sp import pylab
What I get is:
While it should have two side backs on both sides, one of them is 2x higher than the other
Coolcrab
source share