stats 2.1.0 copy "stats: ^2.1.0" to clipboard
stats: ^2.1.0 copied to clipboard

Calculate common statistical values for a set of numbers: max, min, mean, median, standard deviation, and standard error.

CI Pub Package package publisher

import 'package:stats/stats.dart';

void main() {
  final input = [1, 2, 3, 4, 5, 6, 7, 8];
  print('Input: $input');
  final stats = Stats.fromData(input);
  print(stats.withPrecision(3));
  // {
  //  "count": 8,
  //  "average": 4.5,
  //  "min": 1,
  //  "max": 8,
  //  "median": 4.5,
  //  "standardDeviation": 2.29
  // }
}
31
likes
160
points
3.19k
downloads

Publisher

verified publisherkevmoo.com

Weekly Downloads

Calculate common statistical values for a set of numbers: max, min, mean, median, standard deviation, and standard error.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on stats