Changeset 67 for bdm/estim/libPF.h
- Timestamp:
- 04/09/08 15:40:33 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/libPF.h
r60 r67 171 171 } 172 172 173 _w /=sum ( _w ); //? 174 173 if (sum(_w)>0.0){ 174 _w /=sum ( _w ); //? 175 } 176 else 177 { 178 cout<<"sum(w)==0"<<endl; 179 } 175 180 176 181 177 182 double eff = 1.0/ ( _w*_w ); 178 if ( eff < ( 0. 1*n ) ) {183 if ( eff < ( 0.3*n ) ) { 179 184 ind = est.resample(); 180 185 // Resample Bms!