Changeset 7046b67 in tol
- Timestamp:
- May 11, 2009, 3:11:56 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- c02c817
- Parents:
- 095a3b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/arima/_arma_process.tol
r095a3b4 r7046b67 208 208 VMatrix _.L_ma_sp = ARMAProcess::DoDrop(Convert(_.L_ma,"Cholmod.R.Sparse")); 209 209 //Calculates de logarithm of determinant of _.m ARMA covarianze 210 Real _.logDetCov = 2*(-VMatSum(Log(Sub Band(_.Li_ar,0)))+211 VMatSum(Log(Sub Band(_.L_ma_sp, 0))));210 Real _.logDetCov = 2*(-VMatSum(Log(SubDiag(_.Li_ar,0)))+ 211 VMatSum(Log(SubDiag(_.L_ma_sp, 0)))); 212 212 //Filters a Matrix, VMatrix or Serie from inverse of Choleski factor of 213 213 //_.m ARMA covarianze … … 346 346 VMatrix _.L_u_sp = ARMAProcess::DoDrop(Convert(_.L_u,"Cholmod.R.Sparse")); 347 347 //Real _trc.5 = { WriteLn("TRACE Eval.Almagro Creating cov_G "+Time); 0 }; 348 Real _.det_cov_u = 2*VMatSum(Log(Sub Band(_.L_u_sp,0)));348 Real _.det_cov_u = 2*VMatSum(Log(SubDiag(_.L_u_sp,0))); 349 349 VMatrix _.H1 = ARMAProcess::DoDrop(Pol2VMat(F^_.p*(1-_.ar), _.m, _.p)); 350 350 VMatrix _.H2 = ARMAProcess::DoDrop(Pol2VMat(F^_.q*(_.ma-1), _.m, _.q)); … … 358 358 //Real _trc.7 = { WriteLn("TRACE Eval.Almagro Creating _.L_G_sp "+Time); 0 }; 359 359 VMatrix _.L_G_sp = ARMAProcess::DoDrop(Convert(_.L_G,"Cholmod.R.Sparse")); 360 Real _.det_cov_G = 2*VMatSum(Log(Sub Band(_.L_G_sp,0)));360 Real _.det_cov_G = 2*VMatSum(Log(SubDiag(_.L_G_sp,0))); 361 361 Real _.det_cov_z = _.det_cov_u + _.det_cov_G; 362 362 VMatrix _.pi_z = DifEq(_.ar/_.ma,_.z);
Note: See TracChangeset
for help on using the changeset viewer.
