test_Experiment.py 文件源码

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

项目:F_UNCLE 作者: fraserphysics 项目源码 文件源码
def test_sigma(self):
        """Tests that the correct covariance matrix is generated
        """

        exp = SimpleExperiment(exp_var=0.01)

        true_sigma = np.diag((exp.data[1] * 0.01)**2)

        npt.assert_array_almost_equal(true_sigma, exp.get_sigma())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号