__init__.py 文件源码

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

项目:CSB 作者: csb-toolbox 项目源码 文件源码
def testCumulative(self):
        from scipy.stats import norm

        x = numpy.linspace(-5., 5., 200)
        samples = numpy.random.normal(size=100000)
        cumula = Cumulative(samples)
        c = cumula(x)

        cx = norm.cdf(x)
        for i in range(199):
            self.assertAlmostEqual(cx[i], c[i], delta=1e-2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号