gini 1.0.0 gini: ^1.0.0 copied to clipboard
A library for calculating the Gini coefficient
A library for calculating the Gini coefficient
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.