예제 #1
0
def test_equiv_norm():
    x = np.array([1, 2, 3, 4])
    aitchison_norm = norm(x)
    euclidean_norm = np.linalg.norm(ilr(x))
    assert_almost_equal(aitchison_norm, euclidean_norm)
예제 #2
0
def test_equiv_norm():
    x = np.array([1, 2, 3, 4])
    aitchison_norm = norm(x)
    euclidean_norm = np.linalg.norm(ilr(x))
    assert aitchison_norm == pytest.approx(euclidean_norm)
예제 #3
0
def test_equiv_norm():
    x = np.array([1, 2, 3, 4])
    aitchison_norm = norm(x)
    euclidean_norm = np.linalg.norm(ilr(x))
    assert_almost_equal(aitchison_norm, euclidean_norm)