I noticed that R computes the acf(data,n) in order $O(n)$ time, not $O(n^2)$, so it cannot compute it brute force using double for loops. How does R calculate it this quick? What is the algorithm?
Asked
Active
Viewed 632 times
2
Mikkel Rev
- 821
acffunction is given here. I expected it would use a fast Fourier transform, but (at least judging from a quick glance) theacf-related parts offilter.cdon't seem to be doing that. – Glen_b Aug 23 '17 at 22:58