def stateInTheMiddleOfGrid(self, s):
        s_normalized = s.copy()
        for d in xrange(self.domain.state_space_dims):
            s_normalized[d] = closestDiscretization(s[d], self.bins_per_dim[d], self.domain.statespace_limits[d,:])
        return s_normalized
Accepts a continuous state *s*, bins it into the discretized domain,
dataset/ETHPy150Open rlpy/rlpy/rlpy/Representations/Representation.py/Representation.stateInTheMiddleOfGrid