摘要: # hanbb # come on!!! import scipy.interpolate as spi import matplotlib.pyplot as plt import numpy as np # 样条插值 def f(x): return np.sin(x)+0.5*x x = np.linspace(-2*np.pi,2*np.pi,50) ipo = spi.sp... 阅读全文
posted @ 2017-11-24 21:50 hbb360 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 1.线型回归 1.1 当deg改为5或者7时候 2.基函数 3. 3D绘图 阅读全文
posted @ 2017-11-24 20:54 hbb360 阅读(272) 评论(0) 推荐(0) 编辑
摘要: # hanbb # come on!!! import csv # 文件的整体读取 examplefile= open('E:\\download\es.txt') # 打开文件 examplereader = csv.reader(examplefile) # 读取文件 注意不能直接访问文件名字,必须先打开 examplerdata = list(examplereader)... 阅读全文
posted @ 2017-11-24 18:21 hbb360 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1,基本操作 2,小工具和文件的读取,写入 阅读全文
posted @ 2017-11-24 18:20 hbb360 阅读(368) 评论(0) 推荐(0) 编辑