• R/O
  • SSH
  • HTTPS

particle-filter: 提交


Commit MetaInfo

修订版32 (tree)
时间2011-11-12 22:48:53
作者tullio

Log Message

Fixed problems of compilation failure of sample programs

更改概述

差异

--- test/test_filter.cc (revision 31)
+++ test/test_filter.cc (revision 32)
@@ -17,7 +17,7 @@
1717 p[i][j]= p[i][j]+v[i][j];
1818 }
1919 }
20- cout<<"state function"<<endl;
20+// cout<<"state function"<<endl;
2121 return(p);
2222 }
2323 double func2(Particles<double> &p, Particle<double> &q)
@@ -58,7 +58,7 @@
5858 p[i][j]= p[i][j]+v[i][j];
5959 }
6060 }
61- cout<<"state function"<<endl;
61+// cout<<"state function"<<endl;
6262 return(p);
6363 }
6464 double sin_reversed_observed_func(Particles<double> &p, Particle<double> &q)
--- sample/step.cc (revision 31)
+++ sample/step.cc (revision 32)
@@ -60,7 +60,7 @@
6060 Particles<double> x(NUM,1), y(NUM,1);
6161 for(int i=0;i<100;++i)
6262 {
63- track.create_system_noise();
63+ track.create_system_noise(0.0, 1.0);
6464 track.get_next_state(); // predict
6565 x = track.get_particles();
6666 double xp_=0.0;
--- sample/stdin.cc (revision 31)
+++ sample/stdin.cc (revision 32)
@@ -63,7 +63,7 @@
6363 Particles<double> x(NUM,1), y(NUM,1);
6464 for(int i=0;i<28;++i)
6565 {
66- track.create_system_noise();
66+ track.create_system_noise(0.0, 1.0);
6767 track.get_next_state(); // predict
6868 x = track.get_particles();
6969 double xp_=0.0;
Show on old repository browser