IterableNumExtension extension
extension for Iterable<N>
(N
extends num
).
Properties
-
abs
→ List<
num> -
Returns the absolute values of this numeric collection.
no setter
- isSorted → bool
-
Returns
true
if this numeric collection is sorted.no setter - mean → double
-
Returns the mean/average of this numeric collection.
no setter
- median → num?
-
Return the median (middle value) of this numeric collection.
If
data
is empty, returnsnull
.no setter - medianHigh → num?
-
Return the low median (middle value) this collection.
If
data
is empty, returnsnull
.no setter - medianLow → num?
-
Return the low median (middle value) this collection.
If
data
is empty, returnsnull
.no setter -
square
→ List<
num> -
Returns the squares of this numeric collection.
no setter
-
squareRoot
→ List<
double> -
Returns the square roots of this numeric collection.
no setter
- squaresMean → double
-
Returns the mean/average of squares of this numeric collection.
no setter
- standardDeviation → double
-
Returns the standard deviation of this numeric collection.
no setter
- sum → num
-
Returns the sum of this numeric collection.
no setter
- sumSquares → num
-
Returns the sum of squares of this numeric collection.
no setter
Methods
-
asSortedList(
) → List< num> -
Returns a sorted
List<double>
of this numeric collection. If this instance is already sorted and already aList<int>
, returnsthis
instance. -
equalsValues(
List< num> other, {num tolerance = 0}) → bool -
Returns
true
ifother
values are all equals, regarding thetolerance
. -
mapToList<
T> (T f(num n)) → List< T> -
Maps this numeric collection to a
List<T>
usingf
to map each element. -
mapToSet<
T> (T f(num n)) → Set< T> -
Maps this numeric collection to a
Set<T>
usingf
to map each element. -
merge(
Iterable< num> other, num merger(num a, num b)) → List<num> -
Merges this numeric collection with
other
using the merge function. -
mergeTo<
R> (Iterable< num> other, R merger(num a, num b), List<R> destiny) → List<R> -
Merges this numeric collection with
other
using the merge function todestiny
. -
movingAverage(
int samplesSize) → List< double> -
Returns the moving average of
samplesSize
of this numeric collection. -
toDecimalList(
) → List< Decimal> -
Maps this numeric collection to a
List<Decimal>
. -
toDoublesList(
) → List< double> -
Maps this numeric collection to a
List<double>
. -
toDynamicIntList(
) → List< DynamicInt> -
Maps this numeric collection to a
List<DynamicInt>
. -
toIntsList(
) → List< int> -
Maps this numeric collection to a
List<int>
. -
toStringsList(
) → List< String> -
Maps this numeric collection to a
List<String>
.
Operators
-
operator *(
Iterable< num> other) → List<num> -
Multiplies elements of
this
instance withother
instance elements. -
operator -(
Iterable< num> other) → List<num> -
Subtracts elements of
this
instance withother
instance elements. -
operator /(
Iterable< num> other) → List<double> -
Divides elements of
this
instance withother
instance elements. -
operator ~/(
List< num> other) → List<int> -
Divides (as
int
) elements ofthis
instance withother
instance elements.