easy-algorithm-interview-an.../traditional-algorithm/调和平均数.md

11 lines
606 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

调和平均数Harmonic mean是求一组数值的平均数的方法中的一种一般是在计算平均速率时使用。
计算方法为:
$$\frac{n}{H_n} = \frac{1}{a_1} + \frac{1}{a_2} + \cdots + \frac{1}{a_n}$$
知乎上有个关于调和平均数的回答如下:
调和平均的哲学意义是在一个过程中有多少条平行的路径,经过这些平行的路径后,等效的结果就是调和平均。
实际中最容易对应理解的例子就是电阻并联了
两个电阻A, B并联其等效电阻为
$$\frac{1}{R} = \frac{1}{R_A} + \frac{1}{R_B}$$