def test_root_sequence_839_129_shift_839(self): zcs = ZCS_LTE(839,129) (I,Q)=acorr(zcs.get_sequence(), zcs.shift(839)) self.assertTrue(I>1 or Q>1)
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,nzc,u,the_shift): zcs = ZCS_LTE(nzc,u) (I,Q)=acorr(zcs.get_sequence(), zcs.shift(the_shift)) self.assertAlmostEqual(0, I, None, "bingo", 1e-8) self.assertAlmostEqual(0, Q, None, "bingo", 1e-8)
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)