diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-08-17 12:26:24 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-08-17 12:26:24 -0400 |
commit | dff90672879bf1ed9d3e083ba236fdd6ce29e168 (patch) | |
tree | 7b066b9aa14af2758a515d6a4c3c2ea137cf2a24 /gr-digital/python/digital/qam_constellations.py | |
parent | 22e2f1aed8afdfccce3884cf6bf3140c2b8e3f53 (diff) |
whitespace fixes and some minor adjustments for building the Python
manual.
Diffstat (limited to 'gr-digital/python/digital/qam_constellations.py')
-rwxr-xr-x | gr-digital/python/digital/qam_constellations.py | 256 |
1 files changed, 128 insertions, 128 deletions
diff --git a/gr-digital/python/digital/qam_constellations.py b/gr-digital/python/digital/qam_constellations.py index ed86d7e1e3..ab58916384 100755 --- a/gr-digital/python/digital/qam_constellations.py +++ b/gr-digital/python/digital/qam_constellations.py @@ -99,13 +99,13 @@ For 16QAM: def qam_16_0x0_0_1_2_3(): ''' - 0010 0110 | 1110 1010 - - 0011 0111 | 1111 1011 - ----------------------- - 0001 0101 | 1101 1001 - - 0000 0100 | 1100 1000 + | 0010 0110 | 1110 1010 + | + | 0011 0111 | 1111 1011 + | ----------------------- + | 0001 0101 | 1101 1001 + | + | 0000 0100 | 1100 1000 ''' const_points = [-3-3j, -1-3j, 1-3j, 3-3j, -3-1j, -1-1j, 1-1j, 3-1j, @@ -121,13 +121,13 @@ qam_16_0 = qam_16 def qam_16_0x1_0_1_2_3(): ''' - 0011 0111 | 1111 1011 - - 0010 0110 | 1110 1010 - ----------------------- - 0000 0100 | 1100 1000 - - 0001 0101 | 1101 1001 + | 0011 0111 | 1111 1011 + | + | 0010 0110 | 1110 1010 + | ----------------------- + | 0000 0100 | 1100 1000 + | + | 0001 0101 | 1101 1001 ''' k = 0x1 pi = [0, 1, 2, 3] @@ -136,13 +136,13 @@ qam_16_1 = qam_16_0x1_0_1_2_3 def qam_16_0x2_0_1_2_3(): ''' - 0000 0100 | 1100 1000 - - 0001 0101 | 1101 1001 - ----------------------- - 0011 0111 | 1111 1011 - - 0010 0110 | 1110 1010 + | 0000 0100 | 1100 1000 + | + | 0001 0101 | 1101 1001 + | ----------------------- + | 0011 0111 | 1111 1011 + | + | 0010 0110 | 1110 1010 ''' k = 0x2 pi = [0, 1, 2, 3] @@ -151,13 +151,13 @@ qam_16_2 = qam_16_0x2_0_1_2_3 def qam_16_0x3_0_1_2_3(): ''' - 0001 0101 | 1101 1001 - - 0000 0100 | 1100 1000 - ----------------------- - 0010 0110 | 1110 1010 - - 0011 0111 | 1111 1011 + | 0001 0101 | 1101 1001 + | + | 0000 0100 | 1100 1000 + | ----------------------- + | 0010 0110 | 1110 1010 + | + | 0011 0111 | 1111 1011 ''' k = 0x3 pi = [0, 1, 2, 3] @@ -167,13 +167,13 @@ qam_16_3 = qam_16_0x3_0_1_2_3 def qam_16_0x0_1_0_2_3(): ''' - 0001 0101 | 1101 1001 - - 0011 0111 | 1111 1011 - ----------------------- - 0010 0110 | 1110 1010 - - 0000 0100 | 1100 1000 + | 0001 0101 | 1101 1001 + | + | 0011 0111 | 1111 1011 + | ----------------------- + | 0010 0110 | 1110 1010 + | + | 0000 0100 | 1100 1000 ''' k = 0x0 pi = [1, 0, 2, 3] @@ -182,13 +182,13 @@ qam_16_4 = qam_16_0x0_1_0_2_3 def qam_16_0x1_1_0_2_3(): ''' - 0000 0100 | 1100 1000 - - 0010 0110 | 1110 1010 - ----------------------- - 0011 0111 | 1111 1011 - - 0001 0101 | 1101 1001 + | 0000 0100 | 1100 1000 + | + | 0010 0110 | 1110 1010 + | ----------------------- + | 0011 0111 | 1111 1011 + | + | 0001 0101 | 1101 1001 ''' k = 0x1 pi = [1, 0, 2, 3] @@ -197,13 +197,13 @@ qam_16_5 = qam_16_0x1_1_0_2_3 def qam_16_0x2_1_0_2_3(): ''' - 0011 0111 | 1111 1011 - - 0001 0101 | 1101 1001 - ----------------------- - 0000 0100 | 1100 1000 - - 0010 0110 | 1110 1010 + | 0011 0111 | 1111 1011 + | + | 0001 0101 | 1101 1001 + | ----------------------- + | 0000 0100 | 1100 1000 + | + | 0010 0110 | 1110 1010 ''' k = 0x2 pi = [1, 0, 2, 3] @@ -212,13 +212,13 @@ qam_16_6 = qam_16_0x2_1_0_2_3 def qam_16_0x3_1_0_2_3(): ''' - 0010 0110 | 1110 1010 - - 0000 0100 | 1100 1000 - ----------------------- - 0001 0101 | 1101 1001 - - 0011 0111 | 1111 1011 + | 0010 0110 | 1110 1010 + | + | 0000 0100 | 1100 1000 + | ----------------------- + | 0001 0101 | 1101 1001 + | + | 0011 0111 | 1111 1011 ''' k = 0x3 pi = [1, 0, 2, 3] @@ -230,15 +230,15 @@ qam_16_7 = qam_16_0x3_1_0_2_3 def sd_qam_16_0x0_0_1_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0010 0110 | 1110 1010 - - 0011 0111 | 1111 1011 - ----------------------- - 0001 0101 | 1101 1001 - - 0000 0100 | 1100 1000 + | Soft bit LUT generator for constellation: + | + | 0010 0110 | 1110 1010 + | + | 0011 0111 | 1111 1011 + | ----------------------- + | 0001 0101 | 1101 1001 + | + | 0000 0100 | 1100 1000 ''' dist = Es*numpy.sqrt(2) @@ -276,15 +276,15 @@ sd_qam_16_0 = sd_qam_16 def sd_qam_16_0x1_0_1_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0011 0111 | 1111 1011 - - 0010 0110 | 1110 1010 - ----------------------- - 0000 0100 | 1100 1000 - - 0001 0101 | 1101 1001 + | Soft bit LUT generator for constellation: + | + | 0011 0111 | 1111 1011 + | + | 0010 0110 | 1110 1010 + | ----------------------- + | 0000 0100 | 1100 1000 + | + | 0001 0101 | 1101 1001 ''' x_re = 3*x.real x_im = 3*x.imag @@ -311,15 +311,15 @@ sd_qam_16_1 = sd_qam_16_0x1_0_1_2_3 def sd_qam_16_0x2_0_1_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0000 0100 | 1100 1000 - - 0001 0101 | 1101 1001 - ----------------------- - 0011 0111 | 1111 1011 - - 0010 0110 | 1110 1010 + | Soft bit LUT generator for constellation: + | + | 0000 0100 | 1100 1000 + | + | 0001 0101 | 1101 1001 + | ----------------------- + | 0011 0111 | 1111 1011 + | + | 0010 0110 | 1110 1010 ''' x_re = 3*x.real @@ -347,15 +347,15 @@ sd_qam_16_2 = sd_qam_16_0x2_0_1_2_3 def sd_qam_16_0x3_0_1_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0001 0101 | 1101 1001 - - 0000 0100 | 1100 1000 - ----------------------- - 0010 0110 | 1110 1010 - - 0011 0111 | 1111 1011 + | Soft bit LUT generator for constellation: + | + | 0001 0101 | 1101 1001 + | + | 0000 0100 | 1100 1000 + | ----------------------- + | 0010 0110 | 1110 1010 + | + | 0011 0111 | 1111 1011 ''' x_re = 3*x.real x_im = 3*x.imag @@ -382,15 +382,15 @@ sd_qam_16_3 = sd_qam_16_0x3_0_1_2_3 def sd_qam_16_0x0_1_0_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0001 0101 | 1101 1001 - - 0011 0111 | 1111 1011 - ----------------------- - 0010 0110 | 1110 1010 - - 0000 0100 | 1100 1000 + | Soft bit LUT generator for constellation: + | + | 0001 0101 | 1101 1001 + | + | 0011 0111 | 1111 1011 + | ----------------------- + | 0010 0110 | 1110 1010 + | + | 0000 0100 | 1100 1000 ''' x_re = 3*x.real x_im = 3*x.imag @@ -417,15 +417,15 @@ sd_qam_16_4 = sd_qam_16_0x0_1_0_2_3 def sd_qam_16_0x1_1_0_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0000 0100 | 1100 1000 - - 0010 0110 | 1110 1010 - ----------------------- - 0011 0111 | 1111 1011 - - 0001 0101 | 1101 1001 + | Soft bit LUT generator for constellation: + | + | 0000 0100 | 1100 1000 + | + | 0010 0110 | 1110 1010 + | ----------------------- + | 0011 0111 | 1111 1011 + | + | 0001 0101 | 1101 1001 ''' x_re = 3*x.real x_im = 3*x.imag @@ -452,15 +452,15 @@ sd_qam_16_5 = sd_qam_16_0x1_1_0_2_3 def sd_qam_16_0x2_1_0_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0011 0111 | 1111 1011 - - 0001 0101 | 1101 1001 - ----------------------- - 0000 0100 | 1100 1000 - - 0010 0110 | 1110 1010 + | Soft bit LUT generator for constellation: + | + | 0011 0111 | 1111 1011 + | + | 0001 0101 | 1101 1001 + | ----------------------- + | 0000 0100 | 1100 1000 + | + | 0010 0110 | 1110 1010 ''' x_re = 3*x.real x_im = 3*x.imag @@ -487,15 +487,15 @@ sd_qam_16_6 = sd_qam_16_0x2_1_0_2_3 def sd_qam_16_0x3_1_0_2_3(x, Es=1): ''' - Soft bit LUT generator for constellation: - - 0010 0110 | 1110 1010 - - 0000 0100 | 1100 1000 - ----------------------- - 0001 0101 | 1101 1001 - - 0011 0111 | 1111 1011 + | Soft bit LUT generator for constellation: + | + | 0010 0110 | 1110 1010 + | + | 0000 0100 | 1100 1000 + | ----------------------- + | 0001 0101 | 1101 1001 + | + | 0011 0111 | 1111 1011 ''' x_re = 3*x.real x_im = 3*x.imag |