GiniCoeff
Declaration: |
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 array 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. |
|