def cumulative_integral(fx, x):
    return cumtrapz(fx.T, x, initial=0).T
Return the cumulative integral of arrays, initial value is 0.
dataset/ETHPy150Open CamDavidsonPilon/lifelines/lifelines/generate_datasets.py/cumulative_integral