piglot.utils.responses.reduce_response
- reduce_response(x_old: ndarray, y_old: ndarray, tol: float) Tuple[int, float, Tuple[ndarray, ndarray]][source]
Reduce the number of points in a response function
Parameters
- x_oldnp.ndarray
Original time grid
- y_oldnp.ndarray
Values in the original grid
- tolfloat
Maximum acceptable error
Returns
- Tuple[int, float, Tuple[np.ndarray, np.ndarray]]
Number of points, error, and new grid