statistics 0.0.1 copy "statistics: ^0.0.1" to clipboard
statistics: ^0.0.1 copied to clipboard

outdatedDart 1 only

Functions for calculating mathematical statistics of numeric data.

statistics.dart #

Build Status

Functions for calculating mathematical statistics of numeric data.

Note: These functions support int and double Lists.

Usage #

1. Depend on it #

In your pubspec.yaml, add:

dependencies:
  statistics: ">=0.01"

2. Install it #

Run from your command line:

$ pub get

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it #

In your Dart code:

import 'package:statistics/statistics.dart';

4. Use it #

print(mean([1, 2, 3, 4]));

Supported methods #

Method Description
mean(List data) Return the sample arithmetic mean of data
median(List data) Return the median (middle value) of numeric data
median_low(List data) Return the low median of numeric data
median_high(List data) Return the high median of numeric data
median_grouped(List data, [int interval = 1]) Return the median, or 50th percentile, of grouped data
mode(List data) Return the most common data point from discrete or nominal data

All methods throw StatisticsException if data is empty.

23
likes
25
pub points
88%
popularity

Publisher

unverified uploader

Functions for calculating mathematical statistics of numeric data.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

MIT (LICENSE)

More

Packages that depend on statistics