harmonicMean(a)

Returns the harmonic mean of the values stored in array a.

harmonicMean(A)

Returns an array with the harmonic mean of each column of matrix A.


See also mean geometricMean 


Example


a = ( 1, 2, 3, 6, 8, 9 );

harmonicMean(a)

2.6832