Changeset 195 for bdm/estim/mixef.cpp
- Timestamp:
- 10/24/08 15:51:47 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/mixef.cpp
r189 r195 29 29 for ( i=0;i<n;i++ ) { 30 30 //pick one datum 31 int ind= ndat*UniRNG.sample();31 int ind=floor(ndat*UniRNG.sample()); 32 32 Coms ( i )->bayes ( Data.get_col ( ind ),1.0 ); 33 33 } … … 42 42 int ndat=data.cols(); 43 43 int t,i,niter; 44 bool converged ;44 bool converged=false; 45 45 46 46 multiBM weights0 ( weights );