range
Computes the range of the values in this iterable.
The range is the difference between the maximum and minimum values. It is the simplest measure of spread but is sensitive to outliers.
Example:
listOf(1.0, 5.0, 3.0).range() // 4.0Content copied to clipboard
Return
the range (max - min) of the elements.
Computes the range of the values in this array.
The range is the difference between the maximum and minimum values.
NaN values propagate through the computation (IEEE 754 semantics): if any element is NaN, the result is NaN. Filter NaN values before calling this function if that is not desired.
Example:
doubleArrayOf(1.0, 5.0, 3.0).range() // 4.0Content copied to clipboard
Return
the range (max - min) of the array elements.
Computes the range of the values in this sequence.
The sequence is materialized internally. See DoubleArray.range for details.
Return
the range (max - min) of the elements.