Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Scilab 5.5.0
Change language to: English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Estatística > Central Tendency > geomean

# geomean

geometric mean

### Calling Sequence

```gm=geomean(x)
gm=geomean(x,'r')(or, equivalently, gm=geomean(x,1))
gm=geomean(x,'c')(or, equivalently, gm=geomean(x,2))```

### Arguments

x

real or complex vector or matrix

### Description

This function computes the geometric mean of a vector or matrix `x`. For a vector or matrix `x`, `gm=geomean(x)` returns in scalar `gm` the geometric mean of all the entries of `x`.

`gm=geomean(x,'r')` (or, equivalently, `gm=gmean(x,1)` ) returns in each entry of the row vector `gm` the geometric mean of each column of `x`.

`gm=geomean(x,'c')` (or, equivalently, `gm=gmean(x,2)` ) returns in each entry of the column vector `gm` the geometric mean of each row of `x`.

### Examples

`geomean(1:10) // Returns factorial(10)^(1/10) = 4.5287286881167648`

### Bibliography

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << Central Tendency Central Tendency harmean >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Fri Apr 11 14:18:13 CEST 2014