I've been looking for fortran code for computing the autocorrelation function like R's acf function. The code I have found so far uses some parameter called the dimension of correlation. I am used to seeing autocorrelation in terms of lag. What is the relationship between the dimension and the lag? Or am I mixing up two different types/concepts of autocorrelation?
UPDATE So it does just look like an issue of semantics---at least, for this implementation. I got thrown off by this implementation, which seems to be doing something entirely different.
Mas the "dimension" in the post text. In the second link, my exploration of the context for the variablenmolecules(which I assumed was a shortcut to allow autocorrelation for multiple variables, rather than having to call the function multiple times) which led me to discussions of autocorrelation between molecular spins and the term correlation dimension was used. I still don't understand what the code in the second link is doing, but the first link matches results in R. – mikeck Nov 06 '16 at 19:11