Convert a list of category weighting into a 1D array of cumulative proportions.
Examples
util_w2cp(c(0.2, 0.4, 0.6, 0.9))
#> [1] 0.0952381 0.2857143 0.5714286 1.0000000
Convert a list of category weighting into a 1D array of cumulative proportions.
util_w2cp(c(0.2, 0.4, 0.6, 0.9))
#> [1] 0.0952381 0.2857143 0.5714286 1.0000000