def test_weight(self):
     x = np.linspace(0, 10, 11)
     tgt = np.exp(-x)
     res = lag.lagweight(x)
     assert_almost_equal(res, tgt)
Beispiel #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)