geometricMean

Computes geometric mean of input range r.

ElementType!Range
geometricMean
(
Range
)
(
Range r
)
if (
isInputRange!Range &&
isFloatingPoint!(ElementType!Range)
)

Examples

assert(geometricMean([2.0, 8.0]) == 4.0);

Meta