Skip to content
pubscout

statistics

1.2.2, released 3 months ago by an unverified publisher

Statistics package for data manipulation, mathematical functions, and Bayesian Networks.

WASM-ready
$ flutter pub add statistics
Source repository

What it does

Provides tools for statistical computations, Bayesian Networks, high-precision arithmetic (Decimal and DynamicInt), and CSV generation.

AI-written summary of version 1.2.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to compute mean, median, standard deviation, and other statistics on numeric collections.
  • You need to build and query Bayesian Networks for probability analysis.
  • You require high-precision decimal and integer arithmetic to avoid floating-point inaccuracies.

Skip it when

  • You need full-fledged data science or machine learning models beyond Bayesian Networks.
  • You require complex chart rendering or UI components for your statistics.

Strengths

  • Includes built-in Bayesian Network support with variable dependency and event monitoring.
  • High-precision arithmetic classes (Decimal, DynamicInt) that expand precision dynamically.
  • Numeric extensions for rapid statistical calculations and CSV generation.

Weaknesses

  • Limited to statistical calculations, Bayesian networks, and high-precision math tools.
  • Not documented for advanced charting or data visualization.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
3
import 'package:statistics/statistics.dart';

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

Alternatives

Packages that do the same job and could replace statistics.

  • ml_linalg

    SIMD-based linear algebra and statistics library for Dart.

  • fastforge

    Tool for packaging and publishing Flutter applications with support for multiple formats and platforms.

  • matrix2d

    Mathematical 2D array functions and manipulations inspired by NumPy

  • comprehensive_utils

    A collection of performance-oriented tools, widgets, stream helpers, and numeric types.

Works with

Packages commonly used together with statistics: ones it builds on, ones built on it, and its own family.