예제 #1
0
파일: test_util.py 프로젝트: oduerr/wradlib
 def test_calculate_polynomial(self):
     data = np.arange(0, 10, 1)
     w = np.arange(0, 5, 1)
     out = np.array([0, 10, 98, 426, 1252, 2930, 5910, 10738, 18056, 28602])
     poly = util.calculate_polynomial(data, w)
     np.testing.assert_allclose(poly, out, rtol=1e-12)
예제 #2
0
 def test_calculate_polynomial(self):
     data = np.arange(0, 10, 1)
     w = np.arange(0, 5, 1)
     out = np.array([0, 10, 98, 426, 1252, 2930, 5910, 10738, 18056, 28602])
     poly = util.calculate_polynomial(data, w)
     np.testing.assert_allclose(poly, out, rtol=1e-12)