Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)