- Timestamp:
- 12/21/20 16:03:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Splitting.h
r19802 r20010 89 89 size_t index(const size_t &count) /*const*/ 90 90 { 91 size_t index = 0;91 size_t _index = 0; 92 92 if (!lut.empty()) 93 index = lut.find(count % lut.size())->second;93 _index = lut.find(count % lut.size())->second; 94 94 95 95 if (quant.empty()) 96 return index;96 return _index; 97 97 98 98 const double rndm = distribution(generator); 99 for (; rndm>=quant[ index];index++)100 if ( index==quant.size())101 return index;99 for (; rndm>=quant[_index]; _index++) 100 if (_index==quant.size()) 101 return _index; 102 102 103 return index;103 return _index; 104 104 } 105 105
Note:
See TracChangeset
for help on using the changeset viewer.