(PECL stats >= 1.0.0)
stats_harmonic_mean — Returns the harmonic mean of an array of values
stats_harmonic_mean(array $a): number
Returns the harmonic mean of the values in a.
aThe input array
Returns the harmonic mean of the values in a, or false if a is empty or is not an array.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.stats-harmonic-mean.php