Пример #1
0
def test_d_prime():
    hits = 20
    fas = 10
    n = 25

    result_expected = 1.094968336708714
    result = d_prime(hits, fas, n)
    assert np.allclose(result, result_expected)
Пример #2
0
def test_d_prime_fa_rate_0():
    hits = 20
    fas = 0
    n = 25

    result_expected = 2.8709963601770019
    result = d_prime(hits, fas, n)
    assert np.allclose(result, result_expected)
Пример #3
0
def test_d_prime_hit_rate_0():
    hits = 0
    fas = 10
    n = 25

    result_expected = -1.8264976530844206
    result = d_prime(hits, fas, n)
    assert np.allclose(result, result_expected)
Пример #4
0
def test_d_prime_fa_rate_1():
    hits = 20
    fas = 25
    n = 25

    result_expected = -1.2688073016131012
    result = d_prime(hits, fas, n)
    assert np.allclose(result, result_expected)
Пример #5
0
def test_d_prime_hit_rate_1():
    hits = 25
    fas = 10
    n = 25

    result_expected = 2.3133060087056823
    result = d_prime(hits, fas, n)
    assert np.allclose(result, result_expected)