def compute_cdf(ordered_weights):
    return numpy.cumsum(ordered_weights) - 0.5 * ordered_weights
Computes cumulative distribution function (CDF) by ordered weights,
dataset/ETHPy150Open anaderi/lhcb_trigger_ml/hep_ml/metrics_utils.py/compute_cdf