php8.5
Home/ Manual/ stats / functions/ stats_harmonic_mean

stats_harmonic_mean

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Returns the harmonic mean of an array of values

Description

stats_harmonic_mean(array $a): number

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.

Source: reference/stats/functions/stats-harmonic-mean.xml · from the official PHP manual (php/doc-en)