Show
Ignore:
Timestamp:
06/10/10 21:40:09 (14 years ago)
Author:
mido
Message:

another update of doc - all bayesian models until bdm::MultiModel? finished
also MixEF::MixEF_options renamed just to MixEF::Options

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/kalman.h

    r1064 r1077  
    137137        return est; 
    138138    } 
    139     //! load basic elements of Kalman from structure 
    140     /*! \code 
    141         class = 'KalmanFull'; 
    142         A     = [];                   // Matrix A 
    143         B     = [];                   // Matrix B 
    144         C     = [];                   // Matrix C 
    145         D     = [];                   // Matrix D 
    146         Q     = [];                   // Matrix Q 
    147         R     = [];                   // Matrix R 
    148         prior = struct('class','epdf_offspring');    // Prior density - will be converted to gaussian 
    149         yrv   = RV('some_names');     // Description of required observations 
    150         rvc   = RV('some_names');     // Description of required inputs 
    151         \endcode 
    152  
    153         */ 
     139     
     140    /*! Create object from the following structure 
     141 
     142    \code 
     143    class = 'KalmanFull'; 
     144    prior = configuration of bdm::epdf;          % prior density represented by any offspring of epdf, bdm::epdf::from_setting - it will be converted to gaussian 
     145    --- inherited fields --- 
     146    bdm::StateSpace<sq_T>::from_setting 
     147    bdm::BM::from_setting 
     148    \endcode 
     149    */ 
    154150    void from_setting ( const Setting &set ) { 
    155151        StateSpace<sq_T>::from_setting ( set ); 
     
    242238    void bayes ( const vec &yt, const vec &cond = empty_vec ); 
    243239 
     240    /*! Create object from the following structure 
     241 
     242    \code 
     243    class = 'KalmanCh'; 
     244    --- inherited fields --- 
     245    bdm::Kalman<chmat>::from_setting 
     246    \endcode 
     247    */ 
    244248    void from_setting ( const Setting &set ) { 
    245249        Kalman<chmat>::from_setting ( set ); 
    246         validate(); 
    247     } 
     250    } 
     251 
    248252    void validate() { 
    249253        Kalman<chmat>::validate(); 
     
    283287        return est._R().to_mat(); 
    284288    } 
     289 
     290   /*! Create object from the following structure 
     291 
     292    \code 
     293    class = 'EKFfull'; 
     294   
     295    OM = configuration of bdm::diffbifn;    % any offspring of diffbifn, bdm::diffbifn::from_setting 
     296    IM = configuration of bdm::diffbifn;    % any offspring of diffbifn, bdm::diffbifn::from_setting 
     297    dQ = [...];                             % vector containing diagonal of Q 
     298    dR = [...];                             % vector containing diagonal of R 
     299    --- optional fields --- 
     300    mu0 = [...];                            % vector of statistics mu0 
     301    dP0 = [...];                            % vector containing diagonal of P0 
     302    -- or -- 
     303    P0 = [...];                             % full matrix P0 
     304    --- inherited fields --- 
     305    bdm::BM::from_setting 
     306    \endcode 
     307    If the optional fields are not given, they will be filled as follows: 
     308    \code 
     309    mu0 = [0,0,0,....];                     % empty statistics 
     310    P0 = eye( dim );               
     311    \endcode 
     312    */ 
    285313    void from_setting ( const Setting &set ) { 
    286314        BM::from_setting ( set ); 
     
    365393    //! Here dt = [yt;ut] of appropriate dimensions 
    366394    void bayes ( const vec &yt, const vec &cond = empty_vec ); 
    367  
     395     
     396    /*! Create object from the following structure 
     397 
     398    \code 
     399    class = 'EKFCh'; 
     400    OM = configuration of bdm::diffbifn;    % any offspring of diffbifn, bdm::diffbifn::from_setting 
     401    IM = configuration of bdm::diffbifn;    % any offspring of diffbifn, bdm::diffbifn::from_setting 
     402    dQ = [...];                             % vector containing diagonal of Q 
     403    dR = [...];                             % vector containing diagonal of R 
     404    --- optional fields --- 
     405    mu0 = [...];                            % vector of statistics mu0 
     406    dP0 = [...];                            % vector containing diagonal of P0 
     407    -- or -- 
     408    P0 = [...];                             % full matrix P0 
     409    --- inherited fields --- 
     410    bdm::BM::from_setting 
     411    \endcode 
     412    If the optional fields are not given, they will be filled as follows: 
     413    \code 
     414    mu0 = [0,0,0,....];                     % empty statistics 
     415    P0 = eye( dim );               
     416    \endcode 
     417    */ 
    368418    void from_setting ( const Setting &set ); 
    369419 
     
    481531State-Space representation of multivariate autoregressive model. 
    482532The original model: 
    483 \f[ y_t = \theta [\ldots y_{t-k}, \ldots u_{t-l}, \ldots z_{t-m}]' + \Sigma^{-1/2} e_t \f] 
     533\f[ y_t =     heta [\ldots y_{t-k}, \ldots u_{t-l}, \ldots z_{t-m}]' + \Sigma^{-1/2} e_t \f] 
    484534where \f$ k,l,m \f$ are maximum delayes of corresponding variables in the regressor. 
    485535