Dart CI Pub Dart license Made with Spacemacs

A library for calculating the Gini coefficient

license.

Equation

Usage

A simple usage example:

import 'package:gini/gini.dart';

main() {
    List<double> incomes = [3000.12, 1200.29, 4500.01, 1600.89, 5200.11];
    double gini_coeffiecient = gini(incomes);
    print(gini_coeffiecient); // -> 0.2812325580495205
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

gini
Support for doing something awesome. [...]