Ë
    £�Dj  ã                   ó   — d Z ddlZdd„Zy)aœ  Collection of alternative implementations for time series analysis


>>> signal.fftconvolve(x,x[::-1])[len(x)-1:len(x)+10]/x.shape[0]
array([  2.12286549e+00,   1.27450889e+00,   7.86898619e-02,
        -5.80017553e-01,  -5.74814915e-01,  -2.28006995e-01,
         9.39554926e-02,   2.00610244e-01,   1.32239575e-01,
         1.24504352e-03,  -8.81846018e-02])
>>> sm.tsa.stattools.acovf(X, fft=True)[:order+1]
array([  2.12286549e+00,   1.27450889e+00,   7.86898619e-02,
        -5.80017553e-01,  -5.74814915e-01,  -2.28006995e-01,
         9.39554926e-02,   2.00610244e-01,   1.32239575e-01,
         1.24504352e-03,  -8.81846018e-02])

>>> import nitime.utils as ut
>>> ut.autocov(s)[:order+1]
array([  2.12286549e+00,   1.27450889e+00,   7.86898619e-02,
        -5.80017553e-01,  -5.74814915e-01,  -2.28006995e-01,
         9.39554926e-02,   2.00610244e-01,   1.32239575e-01,
         1.24504352e-03,  -8.81846018e-02])
é    Nc                 óê   — ddl m} t        j                  | «      } |r| | j	                  «       z
  } |j                  | | ddd…   «      t        | «      dz
  t        | «      dz    | j                  d   z   y)a_  autocovariance function with call to fftconvolve, biased

    Parameters
    ----------
    x : array_like
        timeseries, signal
    demean : bool
        If true, then demean time series

    Returns
    -------
    acovf : ndarray
        autocovariance for data, same length as x

    might work for nd in parallel with time along axis 0

    r   )ÚsignalNéÿÿÿÿé   é
   )Úscipyr   ÚnpÚasarrayÚmeanÚfftconvolveÚlenÚshape)ÚxÚdemeanr   s      úcC:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\statsmodels/sandbox/archive/tsa.pyÚ	acovf_fftr      sb   € õ$ Ü
�
‰
�1‹€AáØ�—‘“‰Lˆà
×Ñ�q˜™4˜R˜4™Ó!¤# a£&¨¡(¬3¨q«6°"©9Ð5°a·g±g¸a±jÓ@ó    )T)Ú__doc__Únumpyr	   r   © r   r   ú<module>r      s   ðñó* ôAr   