# -*- coding:utf8 -*- import mathimport matplotlib.pyplot as plt def f(w, x): N = len(w) i = 0 y = 0 while i < N - 1: y += w[i] * x[i] i += 1 y += w[N ...
分类:
编程语言 时间:
2016-09-04 17:20:47
阅读次数:
174
import matplotlib.pyplot as plt from matplotlib.dates import DateFormatter, WeekdayLocator, DayLocator, MONDAY,YEARLY from matplotlib.finance import q ...
分类:
其他好文 时间:
2016-08-29 06:53:02
阅读次数:
420
画图的步骤示例参考:import matplotlib.pyplot as plt%matplotlib inlinefrom numpy.random import randnimport numpy as np# 一种方法fig = plt.figure()ax1 = fig.add_subpl... ...
分类:
其他好文 时间:
2016-08-26 09:05:50
阅读次数:
257
#!/usr/bin/env python # -*- coding: utf-8 -*- import networkx as nx import numpy as np import json import matplotlib.pyplot as plt from shapely.geomet... ...
分类:
Web程序 时间:
2016-08-20 19:19:09
阅读次数:
1597
血小板计数(PLT) 血小板计数,指单位体积血液中所含的血小板数目。血小板是血液中最小的细胞,可保护毛细血管的完整性。 血小板计数,指单位体积血液中所含的血小板数目。血小板是血液中最小的细胞,可保护毛细血管的完整性。 正常范围 (100~300)×109/L 检查介绍 血小板计数,指单位体积血液中所 ...
分类:
其他好文 时间:
2016-08-14 20:47:02
阅读次数:
174
# -*- coding: utf-8 -*- """ Created on Thu Aug 11 18:54:12 2016 @author: Administrator """ import numpy as np import matplotlib.pyplot as plt from skl ...
分类:
其他好文 时间:
2016-08-11 22:24:47
阅读次数:
434
在编译共享库必须加上-fpic。这是为什么呢? 首先看一个简单的例子: 先不加-fpic的情况下生成库,反汇编查看fun1的机器码 可以看出调用printf的位置是那个唯一的一个call,并不是跳转到plt表,有关plt表的内容可以查看我前面的博文。也就是说在该库被加载时需要修改代码段来达到重定位的 ...
分类:
系统相关 时间:
2016-07-21 14:36:58
阅读次数:
285
1 # coding:utf-8 2 import numpy as np 3 import matplotlib.pyplot as plt 4 5 def dis(x, y): #计算距离 6 return np.sum(np.power(y - x, 2)) 7 8 def dataN(len ...
分类:
编程语言 时间:
2016-07-20 09:08:42
阅读次数:
409
1、matplotlib.pyplot中add_subplot方法 import matplotlib.pyplot as plt from numpy import * fig = plt.figure() ax = fig.add_subplot(349) ax.plot(x,y) plt.sh... ...
分类:
其他好文 时间:
2016-07-16 22:59:44
阅读次数:
516
#coding=utf-8 ''' Created on Nov 22, 2010 @author: Peter ''' from numpy import * import matplotlib import matplotlib.pyplot as plt from matplotlib.pat... ...
分类:
编程语言 时间:
2016-07-16 00:52:40
阅读次数:
250