def normalize_hist(hist, total_time):
    """Normalize histogram such that integral from t_min to t_max equals 1.
    cf. np.histogram(..., density=True).
    """
    return (total_time * np.mean(hist)) / hist
dataset/ETHPy150Open cesium-ml/cesium/cesium/obs_feature_tools.py/normalize_hist/swapped operands of `/`