Python求均值,方差,标准差,,import num
Python求均值,方差,标准差,,import num
import numpy as np
arr = [1,2,3,4,5,6]
#求均值
arr_mean = np.mean(arr)
#求方差
arr_var = np.var(arr)
#求标准差
arr_std = np.std(arr,ddof=1)
print("平均值为:%f" % arr_mean)
print("方差为:%f" % arr_var)
print("标准差为:%f" % arr_std)
Python求均值,方差,标准差
相关内容
- python笔记13-多线程实战篇(tomorrow),,安装1.tomorr
- ipython在最新python版本中出现事件循环问题,,问题:w
- Python-鑾峰彇绛夊樊鏁板垪,,鏍囩锛?a hre
- Python 3 的 int 类型详解(为什么 int 不存在溢出问题?)
- python 创建游标,,import pym
- Python urllib爬取百度首页,,官网下载安装pyth
- python涓紝a=10.0 b=10.0 a is b 涓轰粈涔堣緭鍑烘槸false,
- python操作kafka,,mac启动zooke
- Python发送邮件并抄送,,#!/usr/bin
- Python爬虫-爬取音乐资源,,爬取音乐资源实现#p
评论关闭