Show
Ignore:
Timestamp:
05/26/10 23:33:28 (14 years ago)
Author:
smidl
Message:

Scheduling of forgetting factor

Files:
1 modified

Legend:

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

    r990 r996  
    33 
    44void ARX::bayes_weighted ( const vec &yt, const vec &cond, const double w ) { 
    5  
    65        bdm_assert_debug ( yt.length() == dimy, "ARX::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) ); 
    76        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         
    810        double lnc; 
    911        //cache 
     
    216218ivec ARX::structure_est_LT ( egiw est0 ) { 
    217219        //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; 
    220231} 
    221232