Changeset 7046b67 in tol


Ignore:
Timestamp:
May 11, 2009, 3:11:56 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
c02c817
Parents:
095a3b4
Message:

Fixes #691

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

File:
1 edited

Legend:

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

    r095a3b4 r7046b67  
    208208    VMatrix _.L_ma_sp = ARMAProcess::DoDrop(Convert(_.L_ma,"Cholmod.R.Sparse"));
    209209    //Calculates de logarithm of determinant of _.m ARMA covarianze
    210     Real _.logDetCov = 2*(-VMatSum(Log(SubBand(_.Li_ar,0)))+
    211                            VMatSum(Log(SubBand(_.L_ma_sp, 0))));
     210    Real _.logDetCov = 2*(-VMatSum(Log(SubDiag(_.Li_ar,0)))+
     211                           VMatSum(Log(SubDiag(_.L_ma_sp, 0))));
    212212    //Filters a Matrix, VMatrix or Serie from inverse of Choleski factor of
    213213    //_.m ARMA covarianze
    … …  
    346346    VMatrix _.L_u_sp = ARMAProcess::DoDrop(Convert(_.L_u,"Cholmod.R.Sparse"));
    347347  //Real _trc.5 = { WriteLn("TRACE Eval.Almagro Creating cov_G "+Time); 0 };
    348     Real _.det_cov_u = 2*VMatSum(Log(SubBand(_.L_u_sp,0)));
     348    Real _.det_cov_u = 2*VMatSum(Log(SubDiag(_.L_u_sp,0)));
    349349    VMatrix _.H1 = ARMAProcess::DoDrop(Pol2VMat(F^_.p*(1-_.ar), _.m, _.p));
    350350    VMatrix _.H2 = ARMAProcess::DoDrop(Pol2VMat(F^_.q*(_.ma-1), _.m, _.q));
    … …  
    358358  //Real _trc.7 = { WriteLn("TRACE Eval.Almagro Creating _.L_G_sp "+Time); 0 };
    359359    VMatrix _.L_G_sp = ARMAProcess::DoDrop(Convert(_.L_G,"Cholmod.R.Sparse"));
    360     Real _.det_cov_G = 2*VMatSum(Log(SubBand(_.L_G_sp,0)));
     360    Real _.det_cov_G = 2*VMatSum(Log(SubDiag(_.L_G_sp,0)));
    361361    Real _.det_cov_z = _.det_cov_u + _.det_cov_G;
    362362    VMatrix _.pi_z = DifEq(_.ar/_.ma,_.z);
Note: See TracChangeset for help on using the changeset viewer.