Calculate the Gini coefficient of a data set.