Changeset 800 for library

Show
Ignore:
Timestamp:
01/31/10 22:14:14 (14 years ago)
Author:
smidl
Message:

new ARX model (allowing non-linear transformation)

Location:
library/bdm
Files:
4 modified

Legend:

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

    r796 r800  
    265265                est.set_rv ( *rv_par ); 
    266266        } 
    267         validate(); 
    268 } 
    269 } 
    270  
     267        //validate(); 
     268} 
     269} 
     270 
  • library/bdm/math/functions.h

    r737 r800  
    3232        constfn ( const vec &val0 ) : fnc(), val ( val0 ) { 
    3333                dimy = val.length(); 
     34                dimc = 0; 
    3435        }; 
    3536}; 
     
    5657                A = A0; 
    5758                B = B0; 
     59        }; 
     60        void from_setting(const Setting &set){ 
     61                UI::get(A,set,"A",UI::compulsory); 
     62                UI::get(B,set,"B",UI::compulsory); 
     63        } 
     64        void validate(){ 
    5865                dimy = A.rows(); 
    59         }; 
     66                dimc = A.cols(); 
     67        } 
     68         
    6069}; 
     70UIREGISTER(linfn); 
    6171 
    6272 
  • library/bdm/mex/mex_function.h

    r797 r800  
    2121                                mexCallMATLAB ( 1, &mxout, 1, &mxinp, fname.c_str() ); 
    2222                                 
    23                                 bdm_assert(mxGetN(mxout)==dimension(), "vector length mismatch"); 
     23                                bdm_assert(mxGetN(mxout)==uint(dimension()) || mxGetM(mxout)==uint(dimension()), "vector length mismatch"); 
    2424                                vec tmp=mxArray2vec(mxout); 
    2525                                return tmp; 
  • library/bdm/stat/exp_family.h

    r799 r800  
    17191719void mgnorm<sq_T >::set_parameters ( const shared_ptr<fnc> &g0, const sq_T &R0 ) { 
    17201720        g = g0; 
     1721        this->dim = g->dimension(); 
     1722        this->dimc = g->dimensionc(); 
    17211723        this->iepdf.set_parameters ( zeros ( g->dimension() ), R0 ); 
    17221724}