Пример #1
0
 def test_in_and_out_smear_zone_uavg_uw_muw(self):
     assert_allclose(u_constant(30, 5, 2, [2, 10], uavg=10, uw=-3, muw=3),
                     [4.869976  ,  9.28842172])
Пример #2
0
 def test_in_and_out_smear_zone(self):
     assert_allclose(u_constant(10, 5, 2, [2, 10]),
                     [0.4555341, 1.10736022])
Пример #3
0
 def test_within_smear_zone(self):
     assert_allclose(u_constant(10, 5, 2, [1, 2]),
                     [0.       ,  0.4555341])
Пример #4
0
 def test_outside_smear_zone(self):
     assert_allclose(u_constant(10, 5, 2, [6, 10]),
                     [1.04326825,  1.10736022])
Пример #5
0
 def test_ideal2(self):
     assert_allclose(u_constant(10,5,1,[1,5,10]),
                     [ 0.        ,  0.94367157,  1.14524187])