Show
Ignore:
Timestamp:
11/15/09 23:02:02 (15 years ago)
Author:
smidl
Message:

Big commit of LQG stuff

Files:
1 modified

Legend:

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

    r700 r723  
    9898} 
    9999 
    100 mlnorm<ldmat>* ARX::predictor ( ) const { 
    101         mat mu ( dimy, posterior()._V().rows() - dimy ); 
    102         mat R ( dimy, dimy ); 
    103         mlnorm<ldmat>* tmp; 
    104         tmp = new mlnorm<ldmat> ( ); 
    105  
    106         est.mean_mat ( mu, R ); //mu = 
    107         mu = mu.T(); 
    108         //correction for student-t  -- TODO check if correct!! 
    109  
    110         if ( have_constant) { // constant term 
    111                 //Assume the constant term is the last one: 
    112                 tmp->set_parameters ( mu.get_cols ( 0, mu.cols() - 2 ), mu.get_col ( mu.cols() - 1 ), ldmat ( R ) ); 
    113         } else { 
    114                 tmp->set_parameters ( mu, zeros ( dimy ), ldmat ( R ) ); 
    115         } 
    116         return tmp; 
    117 } 
    118100 
    119101mlstudent* ARX::predictor_student ( ) const {