src/seals/diagnostics/parabola.py
def transition(self, state: np.ndarray, action: int) -> np.ndarray:
        """Update x according to x_step and y according to action."""
        x, y, a, b, c = state
        next_x = np.clip(x + self._x_step, -self._bounds, self._bounds)
        next_y = np.clip(y + action, -self._bounds, self._bounds)
        return np.array([next_x, next_y, a, b, c], dtype=self.state_space.dtype)
Update x according to x_step and y according to action.
Update x according to x_step and y according to action.
Update x according to x_step and y according to action .
def transition(self, state: np.ndarray, action: int) -> np.ndarray:
        x, y, a, b, c = state
        next_x = np.clip(x + self._x_step, -self._bounds, self._bounds)
        next_y = np.clip(y + action, -self._bounds, self._bounds)
        return np.array([next_x, next_y, a, b, c], dtype=self.state_space.dtype)
def transition ( self , state : np . ndarray , action : int ) -> np . ndarray : x , y , a , b , c = state next_x = np . clip ( x + self . _x_step , - self . _bounds , self . _bounds ) next_y = np . clip ( y + action , - self . _bounds , self . _bounds ) return np . array ( [ next_x , next_y , a , b , c ] , dtype = self . state_space . dtype )
Update x according to x_step and y according to action.
Update x according to x_step and y according to action .
"""Update x according to x_step and y according to action."""
self
state
np.ndarray
action
int