def test_interp_4(self): x = np.random.randn(1) xp = np.random.randn(50) xp.sort() yp = np.random.randn(50) np.testing.assert_almost_equal(bm.interp(x, xp, yp, 0., 1.), np.interp(x, xp, yp, 0., 1.), decimal=8)
def test_interp_2(self): x = np.random.randn(200) x.sort() xp = np.random.randn(50) xp.sort() yp = np.random.randn(50) np.testing.assert_almost_equal(bm.interp(x, xp, yp), np.interp(x, xp, yp), decimal=8)