Changeset 639 for library/bdm/estim/arx.cpp
- Timestamp:
- 09/27/09 00:58:06 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/arx.cpp
r631 r639 4 4 void ARX::bayes ( const vec &dt, const double w ) { 5 5 double lnc; 6 7 6 8 7 if ( frg < 1.0 ) { 9 8 est.pow ( frg ); 9 10 //stabilize 11 ldmat V0(eye(V.rows())); 12 V0*=(1-frg)*1e-3; 13 V += V0; //stabilization 14 nu +=(1-frg)*(0.1 + V.rows() + 1* dimx + 2); 15 16 // recompute loglikelihood of "prior" 10 17 if ( evalll ) { 11 18 last_lognc = est.lognc();