Esempio n. 1
0
 def test_weight(self):
     x = np.linspace(0, 10, 11)
     tgt = np.exp(-x)
     res = lag.lagweight(x)
     assert_almost_equal(res, tgt)
Esempio n. 2
0
 def test_weight(self):
     x = np.linspace(0, 10, 11)
     tgt = np.exp(-x)
     res = lag.lagweight(x)
     assert_almost_equal(res, tgt)