How to find the periodicity in data?

后端 未结 5 1703
轮回少年
轮回少年 2020-12-15 20:19

I have a dataset (an array) and I need to find the periodicity in it. How should I proceed? Somebody said I can use FFT but I am not sure how will it give me the periodicity

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 20:55

    For this task it's best to use the autocorrelation.

    The FFT is the wrong tool to use for finding the periodicity.

    Consider, for example, a case where your waveform is made by adding together two simple sine waves, one with a period of 2 seconds (0.5 Hz), and the other with 3 seconds (0.333 Hz). This waveform will have a periodicity of 6 seconds (i.e., 2*3), but the Fourier spectrum will only show two peaks at .5 Hz, and .333 Hz.

提交回复
热议问题