Exemplo n.º 1
0
def test_cauchy():
    assert describe(pdf.cauchy), ['x', 'm', 'gamma']
    assert_allclose(pdf.cauchy(1, 1, 1.), 0.3183098861837907)
    assert_allclose(pdf.cauchy(1, 1, 2.), 0.15915494309189535)
    assert_allclose(pdf.cauchy(1, 2, 4.), 0.07489644380795074)
Exemplo n.º 2
0
def test_cauchy():
    assert_equal(describe(pdf.cauchy), ['x', 'm', 'gamma'])
    assert_almost_equal(pdf.cauchy(1, 1, 1.), 0.3183098861837907)
    assert_almost_equal(pdf.cauchy(1, 1, 2.), 0.15915494309189535)
    assert_almost_equal(pdf.cauchy(1, 2, 4.), 0.07489644380795074)
Exemplo n.º 3
0
def test_cauchy():
    assert describe(pdf.cauchy), ["x", "m", "gamma"]
    assert_allclose(pdf.cauchy(1, 1, 1.0), 0.3183098861837907)
    assert_allclose(pdf.cauchy(1, 1, 2.0), 0.15915494309189535)
    assert_allclose(pdf.cauchy(1, 2, 4.0), 0.07489644380795074)