In mathematics, the harmonic mean (formerly sometimes called the subcontrary mean) is one of several kinds of average. Typically, it is appropriate for situations when the average of rates is desired.
The harmonic mean H of the positive real numbers x1, x2, ..., xn is defined to be