Harmonic meanIt is a method of calculating the average, which is divided into two forms: simple and weighted. The weighted harmonic mean is a variation of the weighted arithmetic mean. In most cases, we only know the sum of the values of a certain sign in each group, m, but lack information about the total number of units f. Therefore, we cannot directly use the weighted arithmetic mean method to calculate, but use the weighted harmonic mean.
The formula for calculating the weighted arithmetic mean is:

That is, the weighted harmonic mean formula is:

When
, the formula degenerates into the simple harmonic mean formula:
$latex {H\text{ }=\text{ }\frac{{n}}{{{\mathop{ \sum }\nolimits_{{i=1}}^{{n}}{\frac{{1}}{{x\mathop{{}}\nolimits_{{i}}}}}}}}\text{ }=\text{ $
That is, take the arithmetic mean of the reciprocals of n data and then take the reciprocal.
References
【1】Arithmetic mean, geometric mean, harmonic mean, square mean and moving average