Show
Ignore:
Timestamp:
11/28/09 14:38:48 (15 years ago)
Author:
smidl
Message:

Working unitsteps and controlloop + corresponding fixes

Files:
1 modified

Legend:

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

    r739 r744  
    267267        MPF () :  jest ( pf, BMs ) {}; 
    268268        //! set all parameters at once 
    269         void set_parameters ( shared_ptr<pdf> par0, shared_ptr<pdf> obs0, int n0, RESAMPLING_METHOD rm = SYSTEMATIC ) { 
    270                 pf->set_model ( par0, obs0 ); 
     269        void set_pf ( shared_ptr<pdf> par0, int n0, RESAMPLING_METHOD rm = SYSTEMATIC ) { 
     270                if (!pf) pf=new PF; 
     271                pf->set_model ( par0, par0 ); // <=== nasty!!! 
    271272                pf->set_parameters ( n0, rm ); 
     273                pf->set_rv(par0->_rv()); 
    272274                BMs.set_length ( n0 ); 
    273275        } 
     
    298300                return BMs ( i ); 
    299301        } 
     302        PF& _pf() {return *pf;} 
    300303 
    301304        /*! configuration structure for basic PF