Changeset 1009 for library/bdm/estim/arx.cpp
- Timestamp:
- 05/27/10 23:07:16 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/arx.cpp
r1003 r1009 3 3 4 4 void ARX::bayes_weighted ( const vec &yt, const vec &cond, const double w ) { 5 bdm_assert_debug ( yt.length() == dimy, " ARX::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) );6 bdm_assert_debug ( cond.length() == rgrlen , " ARX::bayes cond is of size "+num2str(cond.length())+" expected dimension is "+num2str(rgrlen) );5 bdm_assert_debug ( yt.length() == dimy, "BM::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) ); 6 bdm_assert_debug ( cond.length() == rgrlen , "BM::bayes cond is of size "+num2str(cond.length())+" expected dimension is "+num2str(rgrlen) ); 7 7 8 8 BMEF::bayes_weighted(yt,cond,w); //potential discount scheduling … … 46 46 } 47 47 48 double ARX::logpred ( const vec &yt ) const {48 double ARX::logpred ( const vec &yt, const vec &cond ) const { 49 49 egiw pred ( est ); 50 50 ldmat &V = pred._V(); … … 54 54 vec dyad_p = dyad; 55 55 dyad_p.set_subvector ( 0, yt ); 56 56 dyad_p.set_subvector(dimy,cond); 57 57 58 if ( frg < 1.0 ) { 58 59 pred.pow ( frg );