def radiusForSpeed(self, speed):
overlap = <NUM_LIT><EOL>coordinatesPerTimestep = speed * self.timestep / self.scale<EOL>radius = int(round(float(coordinatesPerTimestep) / <NUM_LIT:2> * overlap))<EOL>minRadius = int(math.ceil((math.sqrt(self.w) - <NUM_LIT:1>) / <NUM_LIT:2>))<EOL>return max(radius, minRadius)<EOL>
Returns radius for given speed.

Tries to get the encodings of consecutive readings to be
adjacent with some overlap.

:param: speed (float) Speed (in meters per second)
:returns: (int) Radius for given speed