Show
Ignore:
Timestamp:
10/15/09 00:04:30 (15 years ago)
Author:
smidl
Message:

doc - doxygen warnings

Files:
1 modified

Legend:

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

    r653 r660  
    106106        //!access function 
    107107        vec& _lls() { return lls; } 
     108        //!access function 
    108109        RESAMPLING_METHOD _resmethod() const { return resmethod; } 
    109         //!access function 
     110        //! return correctly typed posterior (covariant return) 
    110111        const eEmp& posterior() const {return est;} 
    111112         
     
    190191                est.resample(ind,resmethod); 
    191192        } 
     193        //! access function 
    192194        Array<vec>& __samples(){return _samples;} 
    193195}; 
     
    203205class MPF : public BM  { 
    204206        protected: 
     207                //! particle filter on non-linear variable 
    205208        shared_ptr<PF> pf; 
     209        //! Array of Bayesian models 
    206210        Array<BM*> BMs; 
    207211 
     
    209213 
    210214        class mpfepdf : public epdf  { 
     215                //! pointer to particle filter 
    211216                shared_ptr<PF> &pf; 
     217                //! pointer to Array of BMs 
    212218                Array<BM*> &BMs; 
    213219        public: 
     220                //! constructor 
    214221                mpfepdf (shared_ptr<PF> &pf0, Array<BM*> &BMs0): epdf(), pf(pf0), BMs(BMs0) { }; 
    215222                //! a variant of set parameters - this time, parameters are read from BMs and pf 
     
    300307        //! Default constructor. 
    301308        MPF () :  jest (pf,BMs) {}; 
     309        //! set all parameters at once 
    302310        void set_parameters ( shared_ptr<mpdf> par0, shared_ptr<mpdf> obs0, int n0, RESAMPLING_METHOD rm = SYSTEMATIC ) { 
    303311                pf->set_model ( par0, obs0);  
     
    305313                BMs.set_length ( n0 ); 
    306314        } 
     315        //! set a prototype of BM, copy it to as many times as there is particles in pf 
    307316        void set_BM ( const BM &BMcond0 ) { 
    308317 
     
    313322                for ( int i = 0; i < n; i++ ) { 
    314323                        BMs ( i ) = BMcond0._copy_(); 
    315                         BMs ( i )->condition ( pf->posterior()._sample ( i ) ); 
    316324                } 
    317325        }; 
     
    374382                } 
    375383                jest.read_parameters(); 
     384                for ( int i = 0; i < pf->__w().length(); i++ ) { 
     385                        BMs ( i )->condition ( pf->posterior()._sample ( i ) ); 
     386                } 
    376387        } 
    377388