Ejemplo n.º 1
0
def test_calc_base_stats_empty_arr():
    count, mean, std = PhenoTool._calc_base_stats([])
    assert count == 0
    assert mean == 0
    assert std == 0
Ejemplo n.º 2
0
def test_calc_base_stats():
    count, mean, std = PhenoTool._calc_base_stats([1, 2, 3, 4, 5, 6, 7, 8, 9])
    assert count == 9
    assert mean == 5
    assert std == pytest.approx(1.686899413014786, abs=1e-15)