test.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:algoritmos-2016-1 作者: fhca 项目源码 文件源码
def limite_central():
    N=5000
    epsilon = 5e-2
    x1 = zeros(N)
    mu = 0.5
    for i in range(N):
        x1[i] = sum(rand(i+1)) / (i+1)

    plt.hist(x1, bins=100, range=(mu - epsilon, mu + epsilon), normed=True)
    formatter = FuncFormatter(to_percent)
    plt.gca().yaxis.set_major_formatter(formatter)

#limite_central()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号