numpy 画直方图
来源:互联网 发布:ear cuff淘宝 编辑:程序博客网 时间:2024/06/07 13:51
原文出处:点击打开链接 http://reverland.org/python/2012/08/22/numpy/
import numpyimport pylab# Build a vector of 10000 normal deviates with variance 0.5^2 and mean 2mu, sigma = 2, 0.5v = numpy.random.normal(mu,sigma,10000)# Plot a normalized histogram with 50 binsprint vprint type(v)pylab.hist(v, bins=50, normed=1) # matplotlib version (plot)pylab.show()# Compute the histogram with numpy and then plot it(n, bins) = numpy.histogram(v, bins=50, normed=True) # NumPy version (no plot)pylab.plot(.5*(bins[1:]+bins[:-1]), n)pylab.show()
0 0
- numpy 画直方图
- pylab 画直方图,numpy画直方图。
- numpy直方图和pylab直方图的比较
- 画直方图
- 画直方图
- R画直方图
- ASP.NET画直方图
- [matlab] matlab 画直方图
- MatLab 画直方图
- 画数组的直方图
- opencv画直方图
- 用Matlab画直方图
- 画直方图(hist)
- 海龟绘图--画直方图
- 用R画直方图
- matlab 图片画直方图
- R画直方图
- 直方图
- hdoj 2025 查找最大元素
- 二分匹配算法
- OC (三)
- C++ 二分查找 求最近的值
- zigzag数组
- numpy 画直方图
- poj 1094
- uva 10054(欧拉回路+并查集)
- Something about Vim
- linux内核中Kconfig及如何加自己的驱动
- POJ 1035 Spell checker
- maven jetty plug
- hdu 4888 Redraw Beautiful Drawings(最大流)
- cocos2dx中用触摸机制实现在一个方向上拖动精灵。