The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: function GiniCoeff (Data: TDoubleArray): double;

The function GiniCoeff calculates the Gini coefficient of the value in the array Data. Please note that the function returns a zero value if the Data array is empty.

Hint: For positive values the theoretical range of the Gini coefficient is between 0 and 1, with 1 being the highest possible inequality. However, if negative values are contained in Data the Gini coefficient can be even negative or greater than 1.

Last Update: 2023-Feb-06