Skip to content

Commit

Permalink
Merge b64af1a into 9d4b1f8
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleabeauchamp committed Nov 16, 2013
2 parents 9d4b1f8 + b64af1a commit e1a2340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statsmodels/tsa/stattools.py
Expand Up @@ -303,11 +303,11 @@ def acovf(x, unbiased=False, demean=True, fft=False):
xi = np.arange(1, n+1)
d = np.hstack((xi, xi[:-1][::-1]))
else:
d = n
d = n * np.ones(2 * n - 1)
if fft:
nobs = len(xo)
Frf = np.fft.fft(xo, n=nobs*2)
acov = np.fft.ifft(Frf*np.conjugate(Frf))[:nobs]/d
acov = np.fft.ifft(Frf*np.conjugate(Frf))[:nobs] / d[0:nobs][::-1]
return acov.real
else:
return (np.correlate(xo, xo, 'full')/d)[n-1:]
Expand Down

0 comments on commit e1a2340

Please sign in to comment.