예제 #1
0
 def test_firls_2(self):
     # Test for least square method with odd order
     FIR = FIRDesign.firls(self.n2, self.f, self.a)
     fir = signal.firls(103, self.f, self.a)
     self.assertTrue(np.all(FIR[0] == fir))
예제 #2
0
 def test_firls_1(self):
     # Test for least square method
     FIR = FIRDesign.firls(self.n, self.f, self.a)
     fir = signal.firls(101, self.f, self.a)
     self.assertTrue(np.all(FIR[0] == fir))