Ejemplo n.º 1
0
def test_iproj2():
    """
    Test iproj on synergistic distribution.
    """
    d = bivariates['synergy']
    red = i_proj(d, ((0,), (1,)), (2,))
    assert red == pytest.approx(0)
Ejemplo n.º 2
0
def test_iproj3():
    """
    Test iproj on unique distribution.
    """
    d = bivariates['cat']
    red = i_proj(d, ((0,), (1,)), (2,))
    assert red == pytest.approx(0)
Ejemplo n.º 3
0
def test_iproj1():
    """
    Test iproj on redundant distribution.
    """
    d = bivariates['redundant']
    red = i_proj(d, ((0,), (1,)), (2,))
    assert red == pytest.approx(1)