Changeset 7483990 in tol


Ignore:
Timestamp:
Mar 24, 2011, 3:40:14 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6080cea
Parents:
8dcdd01
Message:

Refs #1136

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3350 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/arima/_arma_process.tol

    r8dcdd01 r7483990  
    1010[[
    1111  Text _.autodoc.description = "Methods related with ARMA process";
     12 
     13  ////////////////////////////////////////////////////////////////////////////
     14  Text _.autodoc.member.ACOV =
     15  "Returns theoretical autocovariance function from 0 to given order";
     16  Matrix ACOV(Polyn ar, Polyn ma, Real order)
     17  ////////////////////////////////////////////////////////////////////////////
     18  {
     19    Matrix acov = ARMATACov(ar,ma,order+1)
     20  };
     21
     22  ////////////////////////////////////////////////////////////////////////////
     23  Text _.autodoc.member.ACF =
     24  "Returns theoretical autocorrelation function from 0 to given order";
     25  Matrix ACF(Polyn ar, Polyn ma, Real order)
     26  ////////////////////////////////////////////////////////////////////////////
     27  {
     28    Matrix acov = ARMATACov(ar,ma,order+1);
     29    Matrix acf = acov * 1/MatDat(acov,1,1)
     30  };
     31
     32  ////////////////////////////////////////////////////////////////////////////
     33  Text _.autodoc.member.PACF =
     34  "Returns theoretical partial autocorrelation function from 0 to given order";
     35  Matrix ACF(Polyn ar, Polyn ma, Real order)
     36  ////////////////////////////////////////////////////////////////////////////
     37  {
     38    Matrix acov = ARMATACov(ar,ma,order+1);
     39    Matrix acf = acov * 1/MatDat(acov,1,1);
     40    Matrix fi = DurbinAutoReg(Sub(acf,2,1,order,1),order);
     41    Matrix pacf = Col(1) << Tra(SubDiag(fi,0))
     42  };
    1243
    1344  ////////////////////////////////////////////////////////////////////////////
    … …  
    436467      _0.5_m_log2_PI_s2 - 0.5*_.m*VMatMoment(a,2)/_.s2
    437468    }
    438   ]])}
     469  ]])};
     470
     471 
    439472
    440473]];
Note: See TracChangeset for help on using the changeset viewer.