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