Пример #1
0
 def test_in_and_out_smear_zone_uavg_uw_muw(self):
     assert_allclose(u_parabolic(30, 5, 2, [2, 10], uavg=10, uw=-3, muw=3),
                     [5.65029444,  9.15544955])
Пример #2
0
 def test_in_and_out_smear_zone(self):
     assert_allclose(u_parabolic(30, 5, 2, [2, 10]),
                     [0.35695287,  0.87514425])
Пример #3
0
 def test_within_smear_zone(self):
     assert_allclose(u_parabolic(30, 5, 2, [1, 2]),
                     [ 0.        ,  0.35695287])
Пример #4
0
 def test_outside_smear_zone(self):
     assert_allclose(u_parabolic(30, 5, 2, [6, 10]),
                     [0.72909691,  0.87514425])
Пример #5
0
 def test_ideal2(self):
     assert_allclose(u_parabolic(10,5,1,[1,5,10]),
                     [ 0.        ,  0.94367157,  1.14524187])