IntIterableExtensions extension

Provides extended methods for int arrays.

intの配列用の拡張メソッドを提供します。

on

Methods

average() double

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the average using all values in the int list.
max() int

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the maximum value in the int list.
min() int

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the minimum value in the int list.
nearestOrNull(num point) int?

Available on Iterable<int>, provided by the IntIterableExtensions extension

Get the closest int to point in the int array.
smoothing({int n = 3}) List<double>

Available on Iterable<int>, provided by the IntIterableExtensions extension

Smooth this array with n moving averages.
standardDeviation() double

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the standard deviation using all values in the int list.
sum() int

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the sum using all values in the int list.
variance() double

Available on Iterable<int>, provided by the IntIterableExtensions extension

Calculate the variance using all the values in the list of int.