Changeset 279 for bdm/estim/libPF.h

Show
Ignore:
Timestamp:
02/24/09 14:12:19 (15 years ago)
Author:
smidl
Message:

Transition of pmsm and libKF

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/libPF.h

    r271 r279  
    4747                        { par = par0; obs=obs0; est.set_parameters ( ones(n0),epdf0 ); }; 
    4848        void set_parameters ( mpdf *par0, mpdf *obs0, int n0 )  
    49                         { par = par0; obs=obs0; n=n0; }; 
     49                        { par = par0; obs=obs0; n=n0; est.set_n(n);}; 
    5050        void set_statistics (const vec w0, epdf *epdf0){est.set_parameters ( w0,epdf0 );}; 
    5151        //!@} 
     
    8080                                Coms ( _w.length() ) { 
    8181                }; 
    82  
    8382                void set_elements ( int &i, double wi, const epdf* ep ) 
    8483                {_w ( i ) =wi; Coms ( i ) =ep;}; 
    8584 
     85                void set_n(int n){E.set_n(n); Coms.set_length(n);} 
    8686                vec mean() const { 
    8787                        // ugly 
     
    113113        MPF ( mpdf *par0, mpdf *obs0, int n, const BM_T &BMcond0 ) : PF (), jest ( est ) { 
    114114                PF::set_parameters(par0,obs0,n); 
     115                jest.set_n(n); 
    115116                // 
    116117                //TODO test if rv and BMcond.rv are compatible.