def testFilter3_1d(self): """Test binding and result of the 1d filter""" self.assertTrue(numpy.array_equal( medfilt1d(RANDOM_INT_MAT[0], kernel_size=5, conditional=False, mode='constant'), [0, 2, 2, 2, 1]) )
def testFilter3_1d(self): """Test binding and result of the 1d filter""" self.assertTrue(numpy.array_equal( medfilt1d(RANDOM_INT_MAT[0], kernel_size=3, conditional=False, mode='shrink'), [5, 2, 5, 2, 6]) )
def testFilter3_1d(self): """Test binding and result of the 1d filter""" self.assertTrue( numpy.array_equal( medfilt1d(RANDOM_INT_MAT[0], kernel_size=5, conditional=False, mode='constant'), [0, 2, 2, 2, 1]))
def testFilter3_1d(self): """Test binding and result of the 1d filter""" self.assertTrue( numpy.array_equal( medfilt1d(RANDOM_INT_MAT[0], kernel_size=3, conditional=False, mode='shrink'), [5, 2, 5, 2, 6]))