smartgrid.util.equity.hoover

smartgrid.util.equity.hoover(values)[source]

Statistical measure of inequality.

Parameters:

values – A list of integers, representing the distribution (incomes, comforts, …).

Returns:

A float between 0 (perfect equality) and 1 (perfect inequality).