cumulative_weights

function cumulative_weights(w:Real[_]) -> Real[_]

Compute the cumulative weight vector from the log-weight vector.