Changeset 215
- Timestamp:
- 11/27/08 23:32:45 (16 years ago)
- Files:
-
- 3 added
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/libKF.cpp
r211 r215 153 153 _mu += ( _K ) * pom; 154 154 155 cout << "P:" <<_P.to_mat() <<endl;155 /* cout << "P:" <<_P.to_mat() <<endl; 156 156 cout << "Ry:" <<_Ry.to_mat() <<endl; 157 cout << "_K:" <<_K <<endl; 157 cout << "_K:" <<_K <<endl;*/ 158 158 159 159 if ( evalll==true ) { //likelihood of observation y … … 227 227 *_mu = pfxu->eval ( *_mu ,u ) + ( _K )* ( y-*_yp );*/ 228 228 229 cout << "P:" <<_P.to_mat() <<endl;230 cout << "Ry:" <<_Ry.to_mat() <<endl;231 cout << "_K:" <<_K <<endl;229 // cout << "P:" <<_P.to_mat() <<endl; 230 // cout << "Ry:" <<_Ry.to_mat() <<endl; 231 // cout << "_K:" <<_K <<endl; 232 232 233 233 if ( evalll==true ) { //likelihood of observation y -
bdm/estim/libKF.h
r211 r215 189 189 const epdf& _epdf()const{return E;}; 190 190 const enorm<fsqmat>* _e()const{return &E;}; 191 const mat _R(){return P;} 191 192 }; 192 193 -
bdm/stat/libEF.h
r214 r215 145 145 //! returns pointers to the internal variance and its inverse. Use with Care! 146 146 sq_T& _R() {return R;} 147 const sq_T& _R() const {return R;} 147 148 148 149 //! access method -
pmsm/CMakeLists.txt
r117 r215 37 37 target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) 38 38 39 add_executable (sim sim.cpp) 40 target_link_libraries (sim ${BdmLibs} pmsmsim) 39 41 add_executable (sim_var sim_var.cpp) 40 42 target_link_libraries (sim_var ${BdmLibs} pmsmsim) -
pmsm/pmsm_sim.cpp
r170 r215 38 38 double h = 1e-6; 39 39 int Nsimstep = 125; 40 int Npart = 1 000;40 int Npart = 1; 41 41 42 42 // internal model -
pmsm/sim_profiles.h
r119 r215 63 63 if (!load) x[8]=0.0; 64 64 } 65 66 void sim_profile_2slowrevs(double &Ww,bool load=false) { 67 static int k_rampa=1; 68 69 if ((t>0.2)&&(t<0.8)) { 70 if ((t>0.4)&&(t<0.7)) 71 Ww+=k_rampa*2.*M_PI*4e-5; //1000Hz/s 72 else 73 Ww-=k_rampa*2.*M_PI*4e-5; //1000Hz/s 74 } 75 76 if (!load) x[8]=0.0; 77 }