Changeset 1009 for library/bdm/estim/arx.h
- Timestamp:
- 05/27/10 23:07:16 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/arx.h
r1003 r1009 88 88 bayes_weighted ( yt, cond, 1.0 ); 89 89 }; 90 double logpred ( const vec &yt ) const;90 double logpred ( const vec &yt, const vec &cond ) const; 91 91 void flatten ( const BMEF* B ); 92 92 //! Conditioned version of the predictor … … 103 103 //! Smarter structure estimation by Ludvik Tesar.\return indices of accepted regressors. 104 104 ivec structure_est_LT ( const egiw &Eg0 ); 105 //! reduce to105 //! reduce structure to the given ivec of matrix V 106 106 void reduce_structure(ivec &inds_in_V){ 107 107 ldmat V = posterior()._V(); … … 110 110 ldmat newV(V,inds_in_V); 111 111 est.set_parameters(dimy,newV, posterior()._nu()); 112 113 if (have_constant){ 114 ivec rgr_elem= find(inds_in_V<(V.rows()-1)); // < -- find non-constant 115 rgr = rgr.subselect(rgr_elem); 116 rgrlen = rgr_elem.length(); 117 } else{ 118 rgr = rgr.subselect(inds_in_V); 119 } 112 120 validate(); 113 121 } … … 184 192 185 193 } 194 //! access function 195 RV & _rgr() {return rgr;} 196 bool _have_constant() {return have_constant;} 197 int _rgrlen() {return rgrlen;} 186 198 }; 187 199 UIREGISTER ( ARX );