geometricMean
Computes the geometric mean of the values in this iterable.
The geometric mean is the nth root of the product of n values. It is useful for data that spans several orders of magnitude or for computing average growth rates. All values must be positive. Computed via logarithms to avoid overflow.
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:
listOf(1.0, 2.0, 4.0, 8.0).geometricMean() // 2.8284...Return
the geometric mean of the elements.
Computes the geometric mean of the values in this array.
The geometric mean is the nth root of the product of n values. It is useful for data that spans several orders of magnitude or for computing average growth rates. All values must be positive. Computed via logarithms to avoid overflow.
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, 2.0, 4.0, 8.0).geometricMean() // 2.8284...Return
the geometric mean of the array elements.
Computes the geometric mean of the values in this sequence.
The sequence is materialized internally. See DoubleArray.geometricMean for details.
Return
the geometric mean of the elements.