IterableNumExtension extension

on

Methods

arithmeticMean() double
Returns the arithmetic mean (or average) of this Iterable, or double.nan if the iterable is empty.
average() double
Returns the average of this Iterable, see arithmeticMean for details.
geometricMean() double
Returns the geometric mean of this Iterable, or double.nan if the iterable is empty.
harmonicMean() double
Returns the harmonic mean of this Iterable, or double.nan if the sum of the iterable is 0.
product() double
Returns the product of this Iterable.
standardDeviation({bool population = false}) double
Returns the square root of the (population) variance of this Iterable, or double.nan if the iterable contains less than 2 (1 for population variance) values.
sum() double
Returns the sum of this Iterable.
variance({bool population = false}) double
Returns the (population) variance of this Iterable, or double.nan if the iterable contains less than 2 (1 for population variance) values.