What's the fastest way to approximate the period of data using Octave?

后端 未结 2 2137
花落未央
花落未央 2021-02-10 16:45

I have a set of data that is periodic (but not sinusoidal). I have a set of time values in one vector and a set of amplitudes in a second vector. I\'d like to quickly approximat

2条回答
  •  臣服心动
    2021-02-10 17:14

    Take a look at the auto correlation function.

    From Wikipedia

    Autocorrelation is the cross-correlation of a signal with itself. Informally, it is the similarity between observations as a function of the time separation between them. It is a mathematical tool for finding repeating patterns, such as the presence of a periodic signal which has been buried under noise, or identifying the missing fundamental frequency in a signal implied by its harmonic frequencies. It is often used in signal processing for analyzing functions or series of values, such as time domain signals.

    Paul Bourke has a description of how to calculate the autocorrelation function effectively based on the fast fourier transform (link).

提交回复
热议问题