def max_slope(t, x):
    slopes = np.diff(x) / np.diff(t)
    return np.max(np.abs(slopes))
Compute the largest rate of change in the observed data.
dataset/ETHPy150Open cesium-ml/cesium/cesium/science_features/common_functions.py/max_slope