Mercurial > hg > mauch-mirex-2010
annotate _beattracker/ftacf.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function acf = ftacf(x) |
matthiasm@8 | 2 |
matthiasm@8 | 3 |
matthiasm@8 | 4 x = x(:); |
matthiasm@8 | 5 |
matthiasm@8 | 6 [M,N] = size(x); |
matthiasm@8 | 7 |
matthiasm@8 | 8 X = fft(x,2^nextpow2(2*M-1)); |
matthiasm@8 | 9 acf = ifft(X.*conj(X)); |
matthiasm@8 | 10 |
matthiasm@8 | 11 acf = acf(1:M)./[M:-1:1]'; |