Better calculation of time array, using linspace instead of arange.

这个提交包含在:
Craig Warren
2016-01-27 10:20:16 +00:00
父节点 fa49e358a1
当前提交 f098be0253
共有 3 个文件被更改,包括 6 次插入4 次删除

查看文件

@@ -62,7 +62,8 @@ else:
timewindow = (int(args.timewindow) - 1) * dt
iterations = int(args.timewindow)
time = np.arange(0, timewindow, dt)
time = np.linspace(0, 1, iterations)
time *= (iterations * dt)
waveform = np.zeros(len(time))
timeiter = np.nditer(time, flags=['c_index'])