Add function for weighting samples. Currently not working for cases where an aggregate has zero votes total.