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 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)