Пример #1
0
 def test_outside_smear_zone(self):
     assert_allclose(k_overlapping_linear(30, 50, 8, [25, 28]),
                     [0.28571429, 0.28571429])
Пример #2
0
 def test_within_smear_zone_overlap(self):
     assert_allclose(k_overlapping_linear(30, 50, 8, [1, 1.13559322]),
                     [0.125, 0.12742131])
Пример #3
0
 def test_within_smear_zone(self):
     assert_allclose(k_overlapping_linear(30, 5, 2, [1, 1.13559322]),
                     [0.5, 0.51694915])
Пример #4
0
 def test_outside_smear_zone(self):
     assert_allclose(k_overlapping_linear(30, 5, 2, [5, 8]),
                     [1, 1])
Пример #5
0
 def test_ideal2(self):
     assert_allclose(k_overlapping_linear(20,2,1,[4,6,7]),
                     [1,1,1])