def test_acorr_5_1_5(self): zcs = ZCS(5,1) (I,Q)=acorr(zcs.get_sequence(), zcs.shift(5)) self.assertTrue(I>1 or Q>1)
def acorr_test(self,n,q,the_shift): zcs = ZCS(n,q) (I,Q)=acorr(zcs.get_sequence(), zcs.shift(the_shift)) self.assertAlmostEqual(0, I, None, "bingo", 1e-10) self.assertAlmostEqual(0, Q, None, "bingo", 1e-10)