IterableNumExtension extension

on

Methods

arithmeticMean() double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the arithmetic mean (or average) of this Iterable, or double.nan if the iterable is empty.
average() double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the average of this Iterable, see arithmeticMean for details.
geometricMean() double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the geometric mean of this Iterable, or double.nan if the iterable is empty.
harmonicMean() double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the harmonic mean of this Iterable, or double.nan if the sum of the iterable is 0.
product() double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the product of this Iterable.
standardDeviation({bool population = false}) double

Available on Iterable<num>, provided by the IterableNumExtension extension

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

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the sum of this Iterable.
variance({bool population = false}) double

Available on Iterable<num>, provided by the IterableNumExtension extension

Returns the (population) variance of this Iterable, or double.nan if the iterable contains less than 2 (1 for population variance) values.