testreg.cpp
for calculating the first 5 serial correlations
using the fft method.
The program is a translation of a FORTRAN program found in Conte and de Boor( see [7] ). The translation was produced by R. G. Davies in his matrix class, NEWMAT currently available in the Borland C++ library of Compuserve. I have quite unashamedly translated it for use in YAMP. I have, however, added the ability to do the inverse fft, so I don't feel like a total thief. My version is slower since it calculates offsets in vectors rather than incrementing pointers across the heap. My version is also slower in the virtual memory model since it must page memory almost constantly. My guess is that explicit evaluation of the discrete Fourier transform is faster since it requires less memory paging. I eventually need to see what can be done about this.