• R/O
  • HTTP
  • SSH
  • HTTPS

ParticleFilter: 提交

C++ implementation of particle-filter


Commit MetaInfo

修订版1dd1843035478539108dfed17e318f6739aebb3f (tree)
时间2013-09-09 13:38:06
作者Tetsu R. Satoh <tetsu.sato@nhn-...>
CommiterTetsu R. Satoh

Log Message

Fix taking into account of results of CppChecker

更改概述

差异

--- a/src/filter.cc
+++ b/src/filter.cc
@@ -162,9 +162,7 @@ bool Filter::resampling()
162162 // for(int i=1;i<((int)m-2);++i)
163163 for(int i=1;i<=x.size();++i)
164164 {
165- double a1=0.0, a2=0.0;
166- a1 = psuma[i-1];
167- a2 = psuma[i];
165+ double a1 = psuma[i-1], a2 = psuma[i];
168166 //cout<<a1<<"<"<<u*alphasum<<"<="<<a2<<"?"<<endl;
169167 //cout<<a1/alphasum<<"<"<<u<<"<="<<a2/alphasum<<"?"<<endl;
170168 //cout<<(u<=a2/alphasum)<<"?"<<endl;
@@ -183,4 +181,4 @@ bool Filter::resampling()
183181 }
184182 x = f;
185183 return(true);
186-}
\ No newline at end of file
184+}
Show on old repository browser