Ejemplo n.º 1
0
def test_two_way_skar2():
    """
    Test an unknown example (reduced or).
    """
    d = Distribution(['000', '011', '101'], [1 / 2, 1 / 4, 1 / 4])
    skar = two_way_skar(d, [[0], [2]], [1])
    assert np.isnan(skar)
Ejemplo n.º 2
0
def test_two_way_skar2():
    """
    Test an unknown example (reduced or).
    """
    d = Distribution(['000', '011', '101'], [1/2, 1/4, 1/4])
    skar = two_way_skar(d, [[0], [2]], [1])
    assert np.isnan(skar)
Ejemplo n.º 3
0
def test_two_way_skar1():
    """
    Test simple example 1.
    """
    skar = two_way_skar(intrinsic_1, [[0], [1]], [2])
    assert skar == pytest.approx(0.0)
Ejemplo n.º 4
0
def test_two_way_skar1():
    """
    Test simple example 1.
    """
    skar = two_way_skar(intrinsic_1, [[0], [1]], [2])
    assert skar == pytest.approx(0.0)