def _clip(self, val, low=-2, high=2):
        """ Clip a value in a given range """
        if val > high:
            val = high
        if val < low:
            val = low
        return val
dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/Pinball.py/BallModel._clip/original