GoLang stats_harmonic_mean

request it (287)
GoLang replacement for PHP's stats_harmonic_mean [edit | history]



Do you know a GoLang replacement for PHP's stats_harmonic_mean? Write it!

PHP stats_harmonic_mean

PHP original manual for stats_harmonic_mean [ show | php.net ]

stats_harmonic_mean

(PECL stats >= 1.0.0)

stats_harmonic_meanReturns the harmonic mean of an array of values

Description

number stats_harmonic_mean ( array $a )

Returns the harmonic mean of the values in a.

Parameters

a

The input array

Return Values

Returns the harmonic mean of the values in a, or FALSE if a is empty or is not an array.