def _initializeBucketMap(self, maxBuckets, offset):
<EOL>self._maxBuckets = maxBuckets<EOL>self.minIndex = self._maxBuckets / <NUM_LIT:2><EOL>self.maxIndex = self._maxBuckets / <NUM_LIT:2><EOL>self._offset = offset<EOL>self.bucketMap = {}<EOL>def _permutation(n):<EOL><INDENT>r = numpy.arange(n, dtype=numpy.uint32)<EOL>self.random.shuffle(r)<EOL>return r<EOL><DEDENT>self.bucketMap[self.minIndex] = _permutation(self.n)[<NUM_LIT:0>:self.w]<EOL>self.numTries = <NUM_LIT:0><EOL>
Initialize the bucket map assuming the given number of maxBuckets.