在线文档教程
PHP
数学 | Mathematics

stats_harmonic_mean

stats_harmonic_mean

(PECL stats >= 1.0.0)

stats_harmonic_mean — Returns 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.

← stats_dens_weibull

stats_kurtosis →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/function.stats-harmonic-mean.php