Show
Ignore:
Timestamp:
05/27/10 23:07:16 (14 years ago)
Author:
smidl
Message:

changes in bayes_batch

Files:
1 modified

Legend:

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

    r1003 r1009  
    33 
    44void ARX::bayes_weighted ( const vec &yt, const vec &cond, const double w ) { 
    5         bdm_assert_debug ( yt.length() == dimy, "ARX::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) ); 
    6         bdm_assert_debug ( cond.length() == rgrlen , "ARX::bayes cond is of size "+num2str(cond.length())+" expected dimension is "+num2str(rgrlen) ); 
     5        bdm_assert_debug ( yt.length() == dimy, "BM::bayes yt is of size "+num2str(yt.length())+" expected dimension is "+num2str(dimy) ); 
     6        bdm_assert_debug ( cond.length() == rgrlen , "BM::bayes cond is of size "+num2str(cond.length())+" expected dimension is "+num2str(rgrlen) ); 
    77         
    88        BMEF::bayes_weighted(yt,cond,w); //potential discount scheduling 
     
    4646} 
    4747 
    48 double ARX::logpred ( const vec &yt ) const { 
     48double ARX::logpred ( const vec &yt, const vec &cond ) const { 
    4949        egiw pred ( est ); 
    5050        ldmat &V = pred._V(); 
     
    5454        vec dyad_p = dyad; 
    5555        dyad_p.set_subvector ( 0, yt ); 
    56  
     56        dyad_p.set_subvector(dimy,cond); 
     57         
    5758        if ( frg < 1.0 ) { 
    5859                pred.pow ( frg );