def getBucketIndices(self, x):
if ((isinstance(x, float) and math.isnan(x)) or<EOL>x == SENTINEL_VALUE_FOR_MISSING_DATA):<EOL><INDENT>return [None]<EOL><DEDENT>if self._offset is None:<EOL><INDENT>self._offset = x<EOL><DEDENT>bucketIdx = (<EOL>(self._maxBuckets/<NUM_LIT:2>) + int(round((x - self._offset) / self.resolution))<EOL>)<EOL>if bucketIdx < <NUM_LIT:0>:<EOL><INDENT>bucketIdx = <NUM_LIT:0><EOL><DEDENT>elif bucketIdx >= self._maxBuckets:<EOL><INDENT>bucketIdx = self._maxBuckets-<NUM_LIT:1><EOL><DEDENT>return [bucketIdx]<EOL>
See method description in base.py