cal the effective number of degrees of freedom

The significance of the correlation between two autocorrelated
time-series or the detrend time series was accessed using the effective
number of degrees of freedom [ENDOF]. There are a lot of estimation
methods for ENDOF.