4 ms·
To improve the calculation of the autocorrelation, first 'demean' the input sequence by subtracting its mean from it, like so: https://gist.github.com/anonymous
by eliteraspberrie 12y ago
To improve the calculation of the autocorrelation, first 'demean' the input sequence by subtracting its mean from it, like so: https://gist.github.com/anonymous/a293bdbfa9133a607dd1 https://gist.github.com/anonymous/a293bdbfa9133a607dd1
The reason being that autocorrelation (and convolution in general) is meaningful when the input signal is linear time invariant. Read more about that here: https://en.wikipedia.org/wiki/LTI_system_theory#Impulse_response_and_convolution_2 https://en.wikipedia.org/wiki/LTI_system_theory#Impulse_resp...