This function is useful for calculating the location of the center of the beads in various situations

cum_half_sum(x)

Arguments

x

vector