[SciPy-user] Fourier series
Joris De Ridder
Wed Oct 22 05:54:43 CDT 2008
On 22 Oct 2008, at 11:56 , Nils Wagner wrote:
> Hi all,
> Is there a function in scipy to compute the Fourier
> a_0, a_1, b_1, a_2, b_2 of a periodic function f(t)=f(t+T)
> An example would be appreciated.
I guess you mean numerical, not analytical? As far as I know it's only
possible if you can set an upper limit to its bandwidth. Suppose you
know for certain that no frequencies higher than 100 Hz occur in your
signal, than you can uniformly discretize the signal with spacing
delta t = 1/(2*100) = 0.005, and then use FFT (http://www.scipy.org/Numpy_Example_List
) to compute the Fourier coefficients.
More information about the SciPy-user