示例#1
0
 def test_weight(self):
     x = np.linspace(-1, 1, 11)
     tgt = 1.
     res = leg.legweight(x)
     assert_almost_equal(res, tgt)
示例#2
0
 def test_weight(self):
     x = np.linspace(-1, 1, 11)
     tgt = 1.
     res = leg.legweight(x)
     assert_almost_equal(res, tgt)