import numpy as np import matplotlib.pyplot as plt mu, sigma = 100, 15 np_list = np.random.normal(mu, sigma, 1000) plt.title('$\mu=100$,$\sigma=15$',color='r') count, bins, _ = plt.hist(np_list, 50, normed=True, color='g') plt.plot(bins, 1./(np.sqrt(2*np.pi)*sigma)*np.exp(-(bins-mu)**2/(2*sigma**2)), lw=1, c='r') plt.show()
点赞 评论

相关推荐

白火同学:能。我当初应届沟通了1200,收简历50,面试10左右吧,加油投吧
投了多少份简历才上岸
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务