gini 1.0.0

Dart native js
Flutter Android iOS web

A library for calculating the Gini coefficient

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.

0
likes
85
pub points
0%
popularity

Publisher

dartsociety.dev

A library for calculating the Gini coefficient

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on gini