Пример #1
0
def test_convolve1d_2d():
    f = np.arange(64*4).reshape((16,-1))
    n = np.array([[.5,1.,.5],[0.,2.,0.]])
    convolve1d(f, n, 0)
Пример #2
0
def test_convolve1d_2d():
    f = np.arange(64 * 4).reshape((16, -1))
    n = np.array([[.5, 1., .5], [0., 2., 0.]])
    convolve1d(f, n, 0)
Пример #3
0
def test_convolve1d_shape():
    f = np.arange(64*4).reshape((16,-1))
    n = [.5,1.,.5]
    for axis in (0,1):
        g = convolve1d(f, n, axis)
        assert g.shape == f.shape
Пример #4
0
def test_convolve1d():
    f = np.arange(64 * 4).reshape((16, -1))
    n = [.5, 1., .5]
    for axis in (0, 1):
        g = convolve1d(f, n, axis)
        assert g.shape == f.shape