stats/gini_utils library

Gini coefficient — inequality measure in 0, 1 (roadmap #573).

The Gini coefficient summarizes how unevenly a quantity (income, traffic, load) is distributed: 0 is perfect equality (every value identical) and it approaches 1 as a single member holds everything.

Functions

giniCoefficient(List<num> values) double
Gini coefficient of values, a number in 0, 1.