test_form_hlrf_correlation.py 文件源码

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

项目:pyrisk 作者: nasseralkmim 项目源码 文件源码
def test_form_hlrf_correlation2():
    def limit_state(x1, x2, x3):
        """From choi 2007 p. 224
        x1 = Ma
        x2 = P1
        x3 = P2
        """
        return x1 - x2 - 2*x3

    X = StochasticModel(['norm', 50, 5],
                        ['norm', 10, 2],
                        ['norm', 15, 3])

    x, beta, i = form_hlrf_correlation(limit_state, X, tol=1e-5)
    pf = stats.norm.cdf(-beta)
    assert pytest.approx(pf, rel=1e-2) == 0.1073
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号