Changeset 996 for library/bdm/estim/arx.cpp
- Timestamp:
- 05/26/10 23:33:28 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/arx.cpp
r990 r996 3 3 4 4 void ARX::bayes_weighted ( const vec &yt, const vec &cond, const double w ) { 5 6 5 bdm_assert_debug ( yt.length() == dimy, "ARX::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) ); 7 6 bdm_assert_debug ( cond.length() == rgrlen , "ARX::bayes cond is of size "+num2str(cond.length())+" expected dimension is "+num2str(rgrlen) ); 7 8 BMEF::bayes_weighted(yt,cond,w); //potential discount scheduling 9 8 10 double lnc; 9 11 //cache … … 216 218 ivec ARX::structure_est_LT ( egiw est0 ) { 217 219 //some stuff with beliefs etc. 218 // ivec ind = bdm::straux1(V,nu, est0._V(), est0._nu()); 219 return ivec();//ind; 220 ivec belief = vec_1 ( 2 ); // default belief 221 int nbest = 1; // nbest: how many regressors are returned 222 int nrep = 5; // nrep: number of random repetions of structure estimation 223 double lambda = 0.9; 224 int k = 2; 225 226 Array<str_aux> o2; 227 228 ivec ind = bdm::straux1(est._V(),est._nu(), est0._V(), est0._nu(), belief, nbest, nrep, lambda, k, o2); 229 230 return ind; 220 231 } 221 232