statistics
Statistics package for easy and efficient data manipulation with built-in Bayesian Network (Bayes Net), many mathematical functions and tools.
1.2.1
4.6K downloads/mo
#3958 most downloaded on pub.dev
gmpassos/statistics
What this package is like to depend on
Last release 8 months ago
19 Dec 2025
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 33 of 34 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
34 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
34 releases · Dec 2014 to Dec 2025Releases
latest 34-
1.2.119 Dec 2025Release notes
Open source →-
DynamicNumber:- Added
min,maxandcast<N>().
- Added
-
New
StatisticsBigIntandStatisticsDynamicNumber. -
New
IterableBigIntExtension. -
Numeric extensions:
- Added
sum2andmean2: returns a record with extra parameterallEqualsTo. meanandstandardDeviationare computed in a way that minimizes floating-point precision errors.
- Added
-
IterableExtension:- Added
counts,countsSortedandmostFrequent.
- Added
-
statistics_base_test.dart: improved numeric tests.
Release notes
Open source →-
DynamicNumber:- Added
min,maxandcast<N>().
- Added
-
New
StatisticsBigIntandStatisticsDynamicNumber. -
New
IterableBigIntExtension. -
Numeric extensions:
- Added
sum2andmean2: returns a record with extra parameterallEqualsTo. meanandstandardDeviationare computed in a way that minimizes floating-point precision errors.
- Added
-
IterableExtension:- Added
counts,countsSortedandmostFrequent.
- Added
-
statistics_base_test.dart: improved numeric tests.
-
-
1.2.024 Feb 2025Release notes
Open source →-
sdk: '>=3.6.0 <4.0.0'
-
intl: ^0.20.2
-
collection: ^1.19.0
-
data_serializer: ^1.2.1
-
lints: ^5.1.1
-
test: ^1.25.15
-
dependency_validator: ^3.2.3
-
coverage: ^1.11.1
Release notes
Open source →-
sdk: '>=3.6.0 <4.0.0'
-
intl: ^0.20.2
-
collection: ^1.19.0
-
data_serializer: ^1.2.1
-
lints: ^5.1.1
-
test: ^1.25.15
-
dependency_validator: ^3.2.3
-
coverage: ^1.11.1
-
-
1.1.311 Sep 2024Release notes
Open source →Decimal:_divideOperationByDynamicIntImpl2: fix operation with therms of different signals (-/+or+/-).
Release notes
Open source →Decimal:_divideOperationByDynamicIntImpl2: fix operation with therms of different signals (-/+or+/-).
-
1.1.209 Aug 2024 -
1.1.126 Jul 2024 -
1.1.015 Feb 2024Release notes
Open source →-
sdk: '>=3.3.0 <4.0.0'
-
intl: ^0.19.0
-
collection: ^1.18.0
-
data_serializer: ^1.1.0
-
lints: ^3.0.0
-
test: ^1.25.2
-
coverage: ^1.7.2
Release notes
Open source →-
sdk: '>=3.3.0 <4.0.0'
-
intl: ^0.19.0
-
collection: ^1.18.0
-
data_serializer: ^1.1.0
-
lints: ^3.0.0
-
test: ^1.25.2
-
coverage: ^1.7.2
-
-
1.0.2630 Sep 2023Release notes
Open source →Merge v1.0.26 - fix stdv
- Fix:
- `IterableNumExtension.standardDeviation`.
- `IterableDoubleExtension.standardDeviation`.
- `DecimalOnIterableDecimalExtension.standardDeviation`.
- `DynamicIntOnIterableDynamicNumberExtension.standardDeviation`.- sdk: '>=2.14.0 <4.0.0'
- intl: ^0.18.1
- dependency_validator: ^3.2.3Release notes
Open source →-
Fix:
IterableNumExtension.standardDeviation.IterableDoubleExtension.standardDeviation.DecimalOnIterableDecimalExtension.standardDeviation.DynamicIntOnIterableDynamicNumberExtension.standardDeviation.
-
sdk: '>=2.14.0 <4.0.0'
-
intl: ^0.18.1
-
dependency_validator: ^3.2.3
-
-
1.0.2527 Mar 2023Release notes
Open source →Decimal:- Added
withMaximumPrecision,withMinimumPrecisionandclipPrecision.
- Added
- collection: ^1.17.0
- test: ^1.24.0
- coverage: ^1.6.3
-
1.0.2421 Dec 2022Release notes
Open source →Merge v1.0.24
- intl: ^0.18.0
- lints: ^2.0.1
- test: ^1.22.1
- coverage: ^1.6.1 -
1.0.2320 Aug 2022Release notes
Open source →v1.0.23
- `DynamicNumber`, `DynamicInt`, `Decimal`:
- Added `isWholeNumber`, `isOdd`, `isEven`.
- Added prime numbers support:
- `PrimeUtils`, `PrimeIntExtension`, `PrimeDynamicNumberExtension`, `PrimeDecimalExtension`, `PrimeDynamicIntExtension`.Release notes
Open source →DynamicNumber,DynamicInt,Decimal:- Added
isWholeNumber,isOdd,isEven.
- Added
- Added prime numbers support:
PrimeUtils,PrimeIntExtension,PrimeDynamicNumberExtension,PrimeDecimalExtension,PrimeDynamicIntExtension.
-
1.0.2230 Jul 2022Release notes
Open source →v1.0.22
- Added extension `NumericTypeExtension`:
- Methods: `isNumericType`, `isNumericOrDynamicNumberType`, `isDynamicNumberType`.
- Added extension `NumericTypeExtension`:
- Methods: `isNumericValue`, `isNumericOrDynamicNumberValue`, `isDynamicNumberValue`, `whenNull`.Release notes
Open source →- Added extension
NumericTypeExtension:- Methods:
isNumericType,isNumericOrDynamicNumberType,isDynamicNumberType.
- Methods:
- Added extension
NumericTypeExtension:- Methods:
isNumericValue,isNumericOrDynamicNumberValue,isDynamicNumberValue,whenNull.
- Methods:
- Added extension
-
1.0.2113 Jul 2022Release notes
Open source →- Added
StandardDeviationComputer:StandardDeviationComputerNumStandardDeviationComputerBigIntStandardDeviationComputerDynamicNumber
- Fix standard deviation online calculation.
- sdk: '>=2.14.0 <3.0.0'
- collection: ^1.16.0
- lints: ^2.0.0
- test: ^1.21.4
- dependency_validator: ^3.2.2
- coverage: ^1.2.0
- Added
-
1.0.2006 Apr 2022 -
1.0.1930 Mar 2022Release notes
Open source →- Added High-Precision Arithmetic:
DynamicIntandDecimal. - Added benchmark tools.
- Added browser tests to CI.
- Fixed some tests for browser.
- Added High-Precision Arithmetic:
-
1.0.1805 Mar 2022Release notes
Open source →- New
CountTable. BayesianNetworkandBayesEventMonitor:- Significant performance improvement for high number of variables and dependencies.
- Allow variables nodes with multiple root paths.
Pair:- Added
hashCodecache.
- Added
generateCombinations:- Added parameter
validator.
- Added parameter
- Improved
Chronometer:- New field
totalOperationand methodtimeToComplete. - Added time marks.
- Better
toString:- Changed parameter
withTimetowithStartTime.
- Changed parameter
- New field
Durationextension:toStringUnit:- New parameter
decimal. - Better output for
zeroDuration.
- New parameter
- Added
toStringDifference
Stringextension- Added
headEqualsLength,tailEqualsLength,headEquals,tailDifferent.
- Added
ListExtension:- Added
equalsElements,removeAll,retainAll,toDistinctList,shuffleCopy,randomSelection.
- Added
SetExtension:- Added
copy,equalsElements.
- Added
IterableExtension:- Added
copy,asList,asSet,whereIn,whereNotIn,equalsElements,computeHashcode.
- Added
MapEntryExtension:- Added
copy,equals,toPair.
- Added
MapExtension:- Added
copy.
- Added
- New
-
1.0.1726 Feb 2022Release notes
Open source →- New type
Pair. - New
EventForecasterframework. BayesianNetwork:- New method
addDependency. - Now allows probability dependency between variables.
- Added test with
XOR.
- New method
BayesEventMonitor:- Now allows out-of-order events from the Bayesian Network topology.
- New
CombinationCacheand functiongenerateCombinations. - coverage: ^1.0.4
- New type
-
1.0.1621 Feb 2022Release notes
Open source →ListComparablesExtensionchanged toIterableComparablesExtension.- New
IterableUint8ListExtension,ListAnswerExtensionandListOfListAnswer.
-
1.0.1517 Feb 2022Release notes
Open source →Variablenode optimization:ancestors,rootNodes,rootChain,rootChain.
VariableElimination:- Optimize resolution of nodes needed to answer a query.
-
1.0.1417 Feb 2022Release notes
Open source →- Improved
BayesianNetwork.- Optimized parsing and building of network.
- Added
EventMonitorto help to build aBayesianNetworkand probabilities. - Improved documentation.
- Fix some typos.
- Improved
-
1.0.1315 Feb 2022 -
1.0.1204 Jan 2022Release notes
Open source →- Added
parseBigInt. - Moved some extension methods to package
data_serializer. - Moved
StatisticsPlatformto packagedata_serializerasDataSerializerPlatform. - Exporting
data_serializer ^1.0.3
- Added
-
1.0.1103 Jan 2022Release notes
Open source →- Improved performance:
toUint8List32ReversedandreverseBytes. - Added
BigInt.thousands.
- Improved performance:
-
1.0.1029 Dec 2021Release notes
Open source →- Optimize
Statisticsto allow computation of big numbers without overflow issues.
- Optimize
-
1.0.916 Dec 2021Release notes
Open source →- Added extensions:
String:encodeLatin1,encodeUTF8,truncate`.Uint8List:copyAsUnmodifiable,asUnmodifiableView,toStringLatin1/bytes,toStringUTF8/bytes,setUint8/16/32/64,setInt8/16/32/64.List<int>:toUint8List,asUint8List,compareWith.int:isSafeInteger,checkSafeInteger,int16/32/64ToBytes,uInt16/32/64ToBytes.BigInt:isSafeInteger,checkSafeInteger.
- Improved documentation.
- Fix typo: renamed extension with
UInttoUintto follow Dart style.
- Added extensions:
-
1.0.815 Dec 2021Release notes
Open source →- Added extensions:
DateTime.elapsedTime.int:bits/8/16/32/64,toUint8List32Reversed,toUint8List64Reversed.Uint8List:bits/8/16/32/64.
- Added extensions:
-
1.0.715 Dec 2021Release notes
Open source →Chronometer.toString: added parameterwithTime.- Added
StatisticsPlatformto ensure safeintserialization in any Dart platform. doubleextension: addedtoPercentage.intextension: addedtoBigInt,toUint8List32,toUint8List64,toHex32,toHex64,toStringPadded.- Added extension for
BigIntandUint8List. - Added numeric extension for
String. - Migrated code coverage to use package
coverage. - base_codecs: ^1.0.1
- coverage: ^1.0.3
-
1.0.630 Nov 2021Release notes
Open source →Chronometer.elapsedTimeMs: now returns the elapsed time even if not stopped.
-
1.0.530 Aug 2021Release notes
Open source →Statistics:- Added
medianHigh,medianLowandmedian.- Change constructor: required
medianHigh.
- Change constructor: required
centerpoints tomedianHigh.
- Added
NumExtension:- Added:
num.cast.
- Added:
-
1.0.413 Aug 2021Release notes
Open source →- New metric tools:
UnitLengthandUnitLengthExtension.
- Added:
parseDateTime.DateTimeExtension:formatToYMD,formatToYMDHm,formatToYMDHms,formatToYMDHmZandformatToYMDHmsZ.
MapExtension:equalsKeysValues.
ListMapExtension:sortByKey.
IterableMapExtension:sortedByKey.
DoubleExtension:truncateDecimals.
- Optimize:
- Optimize
splitColumnswithacceptsQuotedValues.
- Optimize
- Improved API Documentation.
- New metric tools:
-
1.0.304 Aug 2021Release notes
Open source →- New extension methods:
head,tailandsublistReversed.searchInsertSortedIndexandbinarySearchPoint.resampleByIndexandresampleByValue.
- Changed from package
pedantic(deprecated) tolints. - lints: ^1.0.1
- New extension methods:
-
1.0.203 Aug 2021Release notes
Open source →- Improve extensions.
- generateCSV:
- Added
commaAsDecimalSeparatoranddecimalPrecision.
- Added
-
1.0.112 Jul 2021Release notes
Open source →- Added:
DoubleEquality,IntEqualityandNumEquality.
- Improve unit tests and coverage up to 98%.
- Improve example.
- Improve
README.md.
- Added:
-
1.0.010 Jul 2021 -
0.0.101 Dec 2014Nothing published for this version