Geometric mean exp(mean(log x)). Equivalent to DescTools::Gmean() in R. NaN with a negative value, 0 with a zero.
DescTools::Gmean()
geometricMean([1, 2, 4, 8]); // 2.82842712474619 Copy
geometricMean([1, 2, 4, 8]); // 2.82842712474619
Geometric mean exp(mean(log x)). Equivalent to
DescTools::Gmean()in R. NaN with a negative value, 0 with a zero.