Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

statistics

statistics package for easy and efficient data manipulation with many built-in mathematical functions and units.

usage

numeric extension:

import 'package:statistics/statistics.dart';

void main() {
  var ns = [10, 20.0, 30];
  print('ns: $ns');

  var mean = ns.mean;
  print('mean: $mean');

  var sdv = ns.standarddeviation;
  print('sdv: $sdv');

  var squares = ns.square;
  print('squares: $squares');
}

output:

ns: [10, 20.0, 30]
mean: 20.0
sdv: 8.16496580927726
squares: [100.0, 400.0, 900.0]

statistics

import 'package:statistics/statistics.dart';

void main() {
  var ns = [10, 20.0, 30];
  var statistics = ns.statistics;

  print('statistics.max: ${ statistics.max }');
  print('statistics.min: ${ statistics.min }');
  print('statistics.mean: ${ statistics.mean }');
  print('statistics.standarddeviation: ${ statistics.standarddeviation }');
  print('statistics.sum: ${ statistics.sum }');
  print('statistics.center: ${ statistics.center }');
  print('statistics.squaressum: ${ statistics.squaressum }');

  print('statistics: $statistics');
}

output:

statistics.max: 30
statistics.min: 10
statistics.mean: 20.0
statistics.standarddeviation: 21.602468994692867
statistics.sum: 60.0
statistics.center: 20.0
statistics.squaressum: 1400.0
statistics: {~20 +-21.6024 [10..(20)..30] #3.0}

csv

import 'package:statistics/statistics.dart';

void main() {
  var categories = <string, list<double?>>{
    'a': [10.0, 20.0, null],
    'b': [100.0, 200.0, 300.0]
  };

  var csv = categories.generatecsv();
  print(csv);
}

output:

#,a,b
1,10.0,100.0
2,20.0,200.0
3,0.0,300.0

source

the official source code is hosted @ github:

features and bugs

please file feature requests and bugs at the issue tracker.

contribution

any help from the open-source community is always welcome and needed:

  • found an issue?
    • please fill a bug report with details.
  • wish a feature?
    • open a feature request with use cases.
  • are you using and liking the project?
    • promote the project: create an article, do a post or make a donation.
  • are you a developer?
    • fix a bug and send a pull request.
    • implement a new feature.
    • improve the unit tests.
  • have you already helped in any way?
    • many thanks from me, the contributors and everybody that uses this project!

if you donate 1 hour of your time, you can contribute a lot,
because others will do the same, just be part and start with your 1 hour.

author

graciliano m. passos


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top