def get_up_down_equal_points(tone_abs_height, prev_tone, c_3):
    """checks if up, down or equal setting is met"""
    assert len(prev_tone[0]) >= 0, 'prev_tone should be array'
    if prev_tone[0] == []:
        return 10
    compare_tone = max(prev_tone[0])
    delta = tone_abs_height - compare_tone
    if delta == 0:
        up_down_equal_type = 0
    else:
        up_down_equal_type = delta / abs(delta)
    if up_down_equal_type == c_3['up_down_equal_probs']:
        up_down_equal_points = 10
    elif abs(delta) <= 4:
        up_down_equal_points = 0.1
    else:
        up_down_equal_points = 2
    return up_down_equal_points
