无私大侠

文章
6
资源
0
加入时间
3年1月10天

numpy中标准差std的神坑

我们用Matlab作为对比。计算标准差,得到:>> std([1,2,3])ans = 1然而在numpy中:>>> np.std([1,2,3])0.81649658092772603什么鬼!这么简单的都能出错?原因在于,np.std有这么一个参数:ddof : int, optionalMeans Delta Degre...