Changeset 585

Show
Ignore:
Timestamp:
08/27/09 15:39:34 (15 years ago)
Author:
smidl
Message:

ticket #12 preparations

Location:
library/bdm/estim
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/arx.cpp

    r577 r585  
    11#include "arx.h" 
    2  
    32namespace bdm { 
    43 
     
    130129        return tmp; 
    131130} 
     131 
     132 
    132133 
    133134/*! \brief Return the best structure 
     
    193194} 
    194195 
    195 //! Rplication of Ludvik Tesar original straux1 from mixtools straux1 
    196 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.m 
    198 } 
    199196 
    200197 
    201198ivec ARX::structure_est_LT ( egiw est0 ) { 
    202199        //some stuff with beliefs etc. 
    203         ivec ind = straux1(V,nu, est0._V(), est0._nu()); 
    204         return ind; 
     200//      ivec ind = bdm::straux1(V,nu, est0._V(), est0._nu()); 
     201        return ivec();//ind; 
    205202} 
    206203 
     
    210207        int ylen = yrv->_dsize(); 
    211208        int rgrlen = rrv->_dsize(); 
     209 
     210        string opt; 
     211        if ( UI::get(opt, set,  "options", UI::optional) ) { 
     212                BM::set_options(opt); 
     213        } 
    212214 
    213215        //init 
     
    232234        //name results (for logging) 
    233235        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  
    1717#include "../stat/exp_family.h" 
    1818#include "../base/user_info.h" 
     19//#include "../estim/kalman.h" 
     20#include "arx_straux.h" 
    1921 
    2022namespace bdm { 
     
    144146        \code 
    145147        estimator = { 
    146                 type = "ARX"; 
     148                class = "ARX"; 
    147149                y = {type="rv", ...}   // description of output variables 
    148150                rgr = {type="rv", ...} // description of regressor variables