This function computes the geometric mean of a set of numbers. The geometric mean is defined as mean = (x1 * x2 * ... * xn)^(1/n). This procedure works with the logarithms of x, which prevents overflow/underflow issues when working with larger or small numbers.
The geometric mean of the data
- data in required
A vector of data. Must be non-negative and finite
- rms in optional
On output, will contain the "logarithmic rms" of the data -- that is, 10^(stdev(alog10(data))).
|Modifcation date:||Mon Jul 26 21:59:18 2010|