Jump to navigation Jump to search
Calculates the arithmetic, harmonic, and geometric mean of a vector.
- vals = means(x)
- x = matrix (column vector) in which the sample data is stored.
The return value is a structure with fields:
- amean = arithmetic mean.
- na = number of obs used in amean calculation.
- hmean = harmonic mean.
- nh = number of obs used in hmean calculation.
- gmean = geometric mean.
- ng = number of obs used in gmean calculation.
mns = means(x);