示例#1
0
 def test_gauss_spline_list(self):
     # regression test for gh-12152 (accept array_like)
     knots = [-1.0, 0.0, -1.0]
     assert_almost_equal(bsp.gauss_spline(knots, 3),
                         array([0.15418033, 0.6909883, 0.15418033]))
示例#2
0
 def test_gauss_spline(self):
     np.random.seed(12459)
     assert_almost_equal(bsp.gauss_spline(0, 0), 1.381976597885342)
     assert_allclose(bsp.gauss_spline(array([1.]), 1), array([0.04865217]))
示例#3
0
 def test_gauss_spline(self):
     np.random.seed(12459)
     assert_almost_equal(bsp.gauss_spline(0, 0), 1.381976597885342)
     assert_allclose(bsp.gauss_spline(array([1.]), 1), array([0.04865217]))