gini 1.0.0 copy "gini: ^1.0.0" to clipboard
gini: ^1.0.0 copied to clipboard

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
25
pub points
0%
popularity

Publisher

verified publisherdartsociety.dev

A library for calculating the Gini coefficient

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on gini