- Timestamp:
- 02/16/09 10:03:13 (16 years ago)
- Location:
- pmsm
- Files:
-
- 13 modified
Legend:
- Unmodified
- Added
- Removed
-
pmsm/mpf_load.cpp
r262 r271 76 76 77 77 MPF<EKFCh_cond> M ( rx,rMz,evolMz,evolMz, Npart, Ep ); 78 M.set_est(evolMz. _epdf());78 M.set_est(evolMz.posterior()); 79 79 80 80 //LOG … … 104 104 //LOG 105 105 L.logit(X_log, vec(x,4)); //vec from C-array 106 L.logit(E_log, Efix. _epdf().mean());107 L.logit(M_log, M. _epdf().mean());106 L.logit(E_log, Efix.posterior().mean()); 107 L.logit(M_log, M.posterior().mean()); 108 108 109 109 L.step(); -
pmsm/mpf_test.cpp
r262 r271 64 64 // 65 65 66 const epdf& KFEep = KFE. _epdf();67 const epdf& Mep = M. _epdf();66 const epdf& KFEep = KFE.posterior(); 67 const epdf& Mep = M.posterior(); 68 68 69 69 dirfilelog L("exp/mpf_test",100); -
pmsm/mpf_u_delta.cpp
r262 r271 114 114 evolUd.set_parameters ( eye ( 3 ), zeros(3), ldmat ( vec( "1e-4 1e-4 10e-4" ))); 115 115 evolUd.condition ( Ud0 ); 116 epdf& pfinit=evolUd. _epdf();116 epdf& pfinit=evolUd.posterior(); 117 117 M.set_est ( pfinit ); 118 118 evolUd.set_parameters ( eye ( 3 ), zeros(3), ldmat ( vec(" 7e-4 7e-4 1e-5" ))); -
pmsm/mpf_u_delta_real.cpp
r262 r271 98 98 evolUd.set_parameters ( eye ( 2 ), vec_2 ( 0.0,0.0 ), ldmat ( 10.0*eye ( 2 ) ) ); 99 99 evolUd.condition ( Ud0 ); 100 epdf& pfinit=evolUd. _epdf();100 epdf& pfinit=evolUd.posterior(); 101 101 M.set_est ( pfinit ); 102 102 evolUd.set_parameters ( eye ( 2 ), vec_2 ( 0.0,0.0 ), ldmat ( 0.005*eye ( 2 ) ) ); -
pmsm/mpf_u_weight.cpp
r262 r271 107 107 evolW.set_parameters ( 10.0, W0, 1.0 ); //sigma = 1/10 mu 108 108 evolW.condition ( W0 ); 109 epdf& pfinit=evolW. _epdf();109 epdf& pfinit=evolW.posterior(); 110 110 M.set_est ( pfinit ); 111 111 evolW.set_parameters ( 100.0, W0, 0.99 ); //sigma = 1/10 mu -
pmsm/pmsm_mix.cpp
r267 r271 81 81 mepdf evolQR(&Eevol); 82 82 MPF<EKFful_unQR> M ( rx,rQR, evolQR, evolQR, Npar, EKU ); 83 M.set_est ( evolQR. _epdf() );83 M.set_est ( evolQR.posterior() ); 84 84 85 const epdf& Efix_ep = Efix. _epdf();86 const epdf& M_ep = M. _epdf();85 const epdf& Efix_ep = Efix.posterior(); 86 const epdf& M_ep = M.posterior(); 87 87 88 88 //LOG -
pmsm/pmsm_sim.cpp
r262 r271 67 67 evolQ.set_parameters ( 10.0 ); //sigma = 1/10 mu 68 68 evolQ.condition ( "0.01 0.01" ); //Zdenek default 69 epdf& pfinit=evolQ. _epdf();69 epdf& pfinit=evolQ.posterior(); 70 70 M.set_est ( pfinit ); 71 71 evolQ.set_parameters ( 10.0 ); … … 73 73 // 74 74 75 const epdf& KFEep = KFE. _epdf();76 const epdf& Mep = M. _epdf();75 const epdf& KFEep = KFE.posterior(); 76 const epdf& Mep = M.posterior(); 77 77 78 78 mat Xt=zeros ( Ndat ,9 ); //true state from simulator -
pmsm/pmsm_sim2.cpp
r262 r271 103 103 evolQ.set_parameters ( 1000.0 ,Qdiag, 0.5); //sigma = 1/10 mu 104 104 evolQ.condition ( Qdiag ); //Zdenek default 105 epdf& pfinit=evolQ. _epdf();105 epdf& pfinit=evolQ.posterior(); 106 106 M.set_est ( pfinit ); 107 107 evolQ.set_parameters ( 100000.0, Qdiag, 0.9999 ); 108 108 // 109 const epdf& KFEep = KFE. _epdf();110 const epdf& Mep = M. _epdf();109 const epdf& KFEep = KFE.posterior(); 110 const epdf& Mep = M.posterior(); 111 111 112 112 int X_log = L.add(rx,"X"); -
pmsm/pmsm_unkQ.cpp
r262 r271 62 62 } 63 63 64 const epdf& KFEep = KFE. _epdf();64 const epdf& KFEep = KFE.posterior(); 65 65 66 66 //simulator values -
pmsm/pmsm_unkQpf.cpp
r262 r271 62 62 MPF<EKF_unQ> M ( rx,rQ,evolQ,evolQ,100,KFE ); 63 63 64 const epdf& KFEep = KFE. _epdf();65 const epdf& Mep = M. _epdf();64 const epdf& KFEep = KFE.posterior(); 65 const epdf& Mep = M.posterior(); 66 66 // initialize 67 67 evolQ.set_parameters ( 1.0 ); //sigma = 1/10 mu 68 68 evolQ.condition ( "0.5 0.5" ); 69 const epdf& pfinit=evolQ. _epdf();69 const epdf& pfinit=evolQ.posterior(); 70 70 M.set_est ( pfinit ); 71 71 evolQ.set_parameters ( 1000.0 ); //sigma = 1/10 mu -
pmsm/sim_var.cpp
r262 r271 75 75 Edi.set_parameters ( &fxu,&hxu,Q,R); 76 76 77 const epdf& Efix_ep = Efix. _epdf();78 const epdf& Eop_ep = Eop. _epdf();79 const epdf& Edi_ep = Edi. _epdf();77 const epdf& Efix_ep = Efix.posterior(); 78 const epdf& Eop_ep = Eop.posterior(); 79 const epdf& Edi_ep = Edi.posterior(); 80 80 81 81 //LOG -
pmsm/sim_var_arx.cpp
r262 r271 46 46 ARX Ar_a ( rgr,V0,nu0 ,0.95 ); 47 47 ARX Ar_b ( rgr,V0,nu0 ,0.95 ); 48 const epdf& pA= Ar_a. _epdf();49 const epdf& pB= Ar_b. _epdf();48 const epdf& pA= Ar_a.posterior(); 49 const epdf& pB= Ar_b.posterior(); 50 50 51 51 RV rta ( "{th_a }",vec_1 ( rglen ) ); -
pmsm/simulator_zdenek/ekf_example/ekf_obj.h
r262 r271 86 86 void bayes ( const vec &dt ); 87 87 //!dummy! 88 epdf& _epdf(){return E;};88 epdf& posterior(){return E;}; 89 89 void condition ( const vec &Q0 ) { 90 90