IterableIntExtension extension
extension for Iterable<int>
.
Properties
-
abs
→ List<
int> -
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 → int?
-
Return the low median (middle value) this collection.
If
data
is empty, returnsnull
.no setter - medianLow → int?
-
Return the low median (middle value) this collection.
If
data
is empty, returnsnull
.no setter -
square
→ List<
int> -
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
-
statistics
→ Statistics<
int> -
Returns a Statistics of this numeric collection.
no setter
-
statisticsWithData
→ Statistics<
int> -
Returns a Statistics of this numeric collection (with populated field Statistics.data).
no setter
- sum → int
-
Returns the sum of this numeric collection.
no setter
- sumSquares → int
-
Returns the sum of squares of this numeric collection.
no setter
Methods
-
asSortedList(
) → List< int> -
Returns a sorted
List<int>
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(int n)) → List< T> -
Maps this numeric collection to a
List<T>
usingf
to map each element. -
mapToSet<
T> (T f(int n)) → Set< T> -
Maps this numeric collection to a
Set<T>
usingf
to map each element. -
merge(
Iterable< num> other, num merger(int a, num b)) → List<num> -
Merges this numeric collection with
other
using the merge function. -
mergeTo<
R> (Iterable< num> other, R merger(int 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. -
toBigIntList(
) → List< BigInt> -
Maps this numeric collection to a
List<BigInt>
. -
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.