## ./

# gmean.pro

## Routines

`result = gmean(data [, rms=rms])`

This function computes the geometric mean of a set of numbers.

`test`

## Routine details

## topgmean

`result = gmean(data [, rms=rms])`

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.

### Return value

The geometric mean of the data

### Parameters

- data in required
A vector of data. Must be non-negative and finite

### Keywords

- rms in optional
On output, will contain the "logarithmic rms" of the data -- that is, 10^(stdev(alog10(data))).

## toptest

`test`

## File attributes

Modifcation date: | Mon Jul 26 21:59:18 2010 |

Lines: | 45 |