Changeset 2124 for GTP/trunk/Lib/Vis/Preprocessing/src/Mutation.cpp
- Timestamp:
- 02/19/07 02:51:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mutation.cpp
r2123 r2124 186 186 for (int i=0; i < contributingRays; i++, index--) { 187 187 if (index < 0) 188 index = mRays.size()-1;188 index = (int)mRays.size()-1; 189 189 mRays[index].mImportance = importance; 190 190 } … … 196 196 // reset the start of the buffer 197 197 mBufferStart = 0; 198 mLastIndex = mRays.size();198 mLastIndex = (int)mRays.size(); 199 199 cout<<"Mutation candidates sorted in "<<TimeDiff(t1, GetTime())<<" ms."<<endl; 200 200 #endif … … 214 214 cout<<"Importance = "<< 215 215 GetEntry(0).mImportance<<" "<< 216 GetEntry( mRays.size()-1).mImportance<<endl;216 GetEntry((int)mRays.size()-1).mImportance<<endl; 217 217 218 218 cout<<"Sampling factor = "<< 219 219 GetEntry(0).GetSamplingFactor()<<" "<< 220 GetEntry( mRays.size()-1).GetSamplingFactor()<<endl;220 GetEntry((int)mRays.size()-1).GetSamplingFactor()<<endl; 221 221 222 222 cerr<<"Mutation update done."<<endl; … … 564 564 index = mLastIndex - 1; 565 565 if (index < 0 || index >= mRays.size()-1) { 566 index = mRays.size() - 1;566 index = (int)mRays.size() - 1; 567 567 } else 568 568 if ( … … 573 573 // cout<<mLastIndex<<endl; 574 574 // cout<<index<<endl; 575 index = mRays.size() - 1;575 index = (int)mRays.size() - 1; 576 576 } 577 577 #else
Note: See TracChangeset
for help on using the changeset viewer.