statistical_dart 0.0.2 copy "statistical_dart: ^0.0.2" to clipboard
statistical_dart: ^0.0.2 copied to clipboard

Simple statistics for dart and flutter.Inspired by a javascript package.

example/example.dart

import 'package:statistical_dart/statistical_dart.dart';

void main() {
  Statistical statistical = Statistical();
  var numbers = [1, 3, 5, 8, -19, -10, 1, 0.2];
  // Array sum
  print(statistical.arrSum(numbers));
  // Array min
  print(statistical.arrMin(numbers));
  // Array max
  print(statistical.arrMax(numbers));
  // Array median
  print(statistical.arrMedian(numbers));
  // Array mode
  print(statistical.arrMode([0.1, 9, 0, 8, 12, -1]));
  // Array mean
  print(statistical.arrMean(numbers));
  // Array Variance
  print(statistical.arrVariance(numbers));
  // Array standard deviation
  print(statistical.arrStdDeviation(numbers));
  // Factorial
  print(statistical.factorial(5));
  // Array geometric mean
  print(statistical.arrGeometricMean(numbers));
  // Array harmonic mean
  print(statistical.arrHarmonicMean(numbers));
  // Array covariance
  print(statistical.arrCovariance(numbers, numbers));
  // Binomial
  print(statistical.binomial(5, 2, 0.4));
}
6
likes
140
pub points
1%
popularity

Publisher

verified publisherworldtrollfootball.wtf

Simple statistics for dart and flutter.Inspired by a javascript package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on statistical_dart