This function, relying on the FitAcfCoef()
function, estimates the
autocorrelation at lag 1 of the xdata array following the method described
in Guemas V., Auger L., Doblas-Reyes F., JAMC, 2013. After applying a linear
detrending and/or a filtering of any frequency peak if requested, the sample
autocorrelation is estimated.
Then the theoretical autocorrelation of an AR1 is fitted to the sample
autocorrelation using the Cardano's formula (see FitAcfCoef()
) to
obtain the autocorrelation at lag 1. This method assumes xdata is an AR1
process.