-1

I need to derive Fourier time series coefficients associated to (i-1)^th harmonic from fft() function in R, some idea?

For instance Adding these concepts we get the general form of the Fourier Series:

f(t)=a_0+∑_k a_k×sin(kwt+ρ_k)

where a_0 is the DC component, w=2πf_0, where f_0 is the fundamental frequency of the original wave.

Each wave component a_k×sin(kwt+ρ_k) is also called a harmonic.

If I fixed the number of harmonics to 2, I would like to derive a_0,a_1,a_2 from fft()

  • 3
    Your question is too broad. You should be more specific. You should also provide an example of a data set your are using. – MLavoie Jun 08 '18 at 12:23

1 Answers1

1

It's a very general question. You can look here: Fourier Transform: A R Tutorial, for a start.

DJV
  • 4,743
  • 3
  • 19
  • 34