def plot(self):
pl.plot(self.n,self.r2ave,'.c')
pl.plot(self.n,self.r2ave_fit,'k')
pl.ylim(0,100)
# for i in range(self.M):
# self.x = 0
# for j in range(self.N):
# for k in range(j):
# rnd = random.random()
# rnd = random.random()
# if rnd > 0.5:
# self.x +=1
# else:
# self.x -=1
## print(self.x)
# self.x2 += math.pow(self.x,2)
## print(self.x2)
# self.x2ave = self.x2/self.M
# print(self.x2ave)
## return self.x2ave
final code16.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录