예제 #1
0
 def DIFFman(self, fil_dict):
     self._get_params(fil_dict)
     if not self._test_N():
         return -1
     self.N = ceil_even(self.N) # enforce even order
     self._save(fil_dict, sig.remez(self.N,[0, self.F_PB],[np.pi*fil_dict['W_PB']],
             Hz = 1, type = 'differentiator', grid_density = self.grid_density))
예제 #2
0
 def DIFFman(self, fil_dict):
     self._get_params(fil_dict)
     self.N = ceil_even(self.N)  # enforce even order
     self._save(
         fil_dict,
         sig.remez(self.N, [0, self.F_PB], [np.pi * fil_dict['W_PB']],
                   Hz=1,
                   type='differentiator',
                   grid_density=self.grid_density))