Changeset 585
- Timestamp:
- 08/27/09 15:39:34 (15 years ago)
- Location:
- library/bdm/estim
- Files:
-
- 2 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/arx.cpp
r577 r585 1 1 #include "arx.h" 2 3 2 namespace bdm { 4 3 … … 130 129 return tmp; 131 130 } 131 132 132 133 133 134 /*! \brief Return the best structure … … 193 194 } 194 195 195 //! Rplication of Ludvik Tesar original straux1 from mixtools straux1196 ivec straux1(ldmat Ld, double nu, ldmat Ld0, double nu0/*, ivec belief, int nbest, int max_nrep, double lambda, int order_k, ivec &rgrsout*/){197 // see utia_legacy/ticket_12/ implementation and str_test.m198 }199 196 200 197 201 198 ivec ARX::structure_est_LT ( egiw est0 ) { 202 199 //some stuff with beliefs etc. 203 ivec ind =straux1(V,nu, est0._V(), est0._nu());204 return i nd;200 // ivec ind = bdm::straux1(V,nu, est0._V(), est0._nu()); 201 return ivec();//ind; 205 202 } 206 203 … … 210 207 int ylen = yrv->_dsize(); 211 208 int rgrlen = rrv->_dsize(); 209 210 string opt; 211 if ( UI::get(opt, set, "options", UI::optional) ) { 212 BM::set_options(opt); 213 } 212 214 213 215 //init … … 232 234 //name results (for logging) 233 235 set_rv ( RV ( "{theta r }", vec_2 ( ylen*rgrlen, ylen*ylen ) ) ); 234 } 235 236 } 236 237 } 238 239 } -
library/bdm/estim/arx.h
r577 r585 17 17 #include "../stat/exp_family.h" 18 18 #include "../base/user_info.h" 19 //#include "../estim/kalman.h" 20 #include "arx_straux.h" 19 21 20 22 namespace bdm { … … 144 146 \code 145 147 estimator = { 146 type= "ARX";148 class = "ARX"; 147 149 y = {type="rv", ...} // description of output variables 148 150 rgr = {type="rv", ...} // description of regressor variables