Exemple #1
0
    def test_M2(self):
        np.set_printoptions(linewidth=np.inf)
        for L in [2, 4, 8]:
            testUnitaryCode(2, ADSMCode(2, "PSK", L))

        mind = getMinimumEuclideanDistance(ADSMCode(2, "PSK", 2).codes)
        self.assertAlmostEqual(mind, 4.0)
        mind = getMinimumEuclideanDistance(ADSMCode(2, "PSK", 2, 2.0 * np.pi / 4.0).codes)
        self.assertAlmostEqual(mind, 2.0)
Exemple #2
0
    def test_M2(self):
        c = TASTCode(2, 1, 2)
        self.assertGreater(getMinimumEuclideanDistance(c.codes), 0.0)
        testUnitaryCode(2, c)

        c = TASTCode(2, 2, 2)
        self.assertGreater(getMinimumEuclideanDistance(c.codes), 0.0)
        testUnitaryCode(2, c)

        c = TASTCode(2, 4, 2)
        self.assertGreater(getMinimumEuclideanDistance(c.codes), 0.0)
        testUnitaryCode(2, c)

        c = TASTCode(2, 2, 16)
        self.assertGreater(getMinimumEuclideanDistance(c.codes), 0.0)
        testUnitaryCode(2, c)
Exemple #3
0
 def test_M4(self):
     for L in [4, 8, 16]:
         testUnitaryCode(4, ADSMCode(4, "PSK", L))
Exemple #4
0
 def test_M4(self):
     for L in [4, 16, 256]:
         testUnitaryCode(4, DiagonalUnitaryCode(4, L))
Exemple #5
0
 def test_M2(self):
     for L in [2, 4, 16, 256]:
         testUnitaryCode(2, DiagonalUnitaryCode(2, L))
Exemple #6
0
 def test_M16(self):
     testUnitaryCode(16, OSTBCode(16, "PSK", 2))
Exemple #7
0
 def test_M4(self):
     for L in [2, 4, 8, 16]:
         testUnitaryCode(4, OSTBCode(4, "PSK", L, nsymbols=2))
         testUnitaryCode(4, OSTBCode(4, "PSK", L, nsymbols=3))
Exemple #8
0
 def test_M2(self):
     for L in [2, 4, 8, 16]:
         testUnitaryCode(2, OSTBCode(2, "PSK", L))