Computing cross-correlation function?

前端 未结 4 2005
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 20:49

In R, I am using ccf or acf to compute the pair-wise cross-correlation function so that I can find out which shift gives me the maximu

4条回答
  •  余生分开走
    2020-11-30 21:31

    I just finished writing my own optimised implementation of normalized cross-correlation for N-dimensional arrays. You can get it from here.

    It will calculate cross-correlation either directly, using scipy.ndimage.correlate, or in the frequency domain, using scipy.fftpack.fftn/ifftn depending on whichever will be quickest.

提交回复
热议问题