- 调和平均数可以用在相同距离但速度不同时,平均速度的计算;如一段路程,前半段时速60公里,后半段时速30公里〔两段距离相等〕,则其平均速度为两者的调和平均数时速40公里。
使用python进行计算
>>> from scipy import stats;
>>> print stats.hmean([60,30])
40.0
image.png
使用python进行计算
>>> from scipy import stats;
>>> print stats.hmean([60,30])
40.0