- 调和平均数可以用在相同距离但速度不同时,平均速度的计算;如一段路程,前半段时速60公里,后半段时速30公里〔两段距离相等〕,则其平均速度为两者的调和平均数时速40公里。
使用python进行计算
>>> from scipy import stats;
>>> print stats.hmean([60,30])
40.0
![](https://img.haomeiwen.com/i9474471/71a2ba261b2a2467.png)
使用python进行计算
>>> from scipy import stats;
>>> print stats.hmean([60,30])
40.0
本文标题:调和平均数
本文链接:https://www.haomeiwen.com/subject/xcejbktx.html
网友评论