Show
Ignore:
Timestamp:
10/23/09 00:05:25 (15 years ago)
Author:
smidl
Message:

Major changes in BM -- OK is only test suite and tests/tutorial -- the rest is broken!!!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/arx_test.cpp

    r477 r679  
    2727        ARX Ar; 
    2828        Ar.set_statistics ( 1, V0, nu0 );               // Estimator 
     29        Ar.set_constant(false); 
     30        Ar.validate(); 
    2931        const epdf& f_thr = Ar.posterior();          // refrence to posterior of the estimator 
    3032 
     
    3436        Yt.set_subvector ( 0, randn ( ord ) ); //initial values 
    3537        vec rgr ( ord );                // regressor 
    36         vec Psi ( ord + 1 );            // extended regressor 
    3738 
    3839        //print moments of the prior distribution 
     
    4950                Yt ( t ) = th * rgr + sqr * NorRNG(); 
    5051 
    51                 Psi = concat ( Yt ( t ), rgr ); // Inefficient! Used for compatibility with Matlab! 
    52                 Ar.bayes ( Psi );             // Bayes rule 
     52                Ar.bayes ( vec_1(Yt(t)), rgr );             // Bayes rule 
    5353 
    5454                // Build predictor