Exemplo n.º 1
0
 def test_anaqpsk(self):
     """Test quaternary PSK signal."""
     signal, phases = ana.anaqpsk(512, 64, 0.25)
     self.assert_is_analytic(signal)
     # Count discontinuities in the signal and the phases and assert that
     # they appear in the same locations
     uphase = unwrap(angle(signal))
     dphase = np.diff(uphase)
     base_value = mode(dphase)[0][0]
     signal_phase_change = np.abs(dphase - base_value) > 0.0001
     ideal_phase_change = np.diff(phases) != 0
     np.testing.assert_allclose(signal_phase_change, ideal_phase_change)
Exemplo n.º 2
0
 def test_anaqpsk(self):
     """Test quaternary PSK signal."""
     signal, phases = ana.anaqpsk(512, 64, 0.25)
     self.assert_is_analytic(signal)
     # Count discontinuities in the signal and the phases and assert that
     # they appear in the same locations
     uphase = unwrap(angle(signal))
     dphase = np.diff(uphase)
     base_value = mode(dphase)[0][0]
     signal_phase_change = np.abs(dphase - base_value) > 0.0001
     ideal_phase_change = np.diff(phases) != 0
     np.testing.assert_allclose(signal_phase_change, ideal_phase_change)
Exemplo n.º 3
0
 def test_anaqpsk(self):
     """Test quaternary PSK signal."""
     # FIXME: Need to dig deeper in qpsk and find a better way of testing
     # it.
     signal, pm0 = ana.anaqpsk(512, 64, 0.05)
     self.assert_is_analytic(signal)
Exemplo n.º 4
0
 def test_anaqpsk(self):
     """Test quaternary PSK signal."""
     # FIXME: Need to dig deeper in qpsk and find a better way of testing
     # it.
     signal, pm0 = ana.anaqpsk(512, 64, 0.05)
     self.assert_is_analytic(signal)