This repository was archived by the owner on Mar 25, 2024. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: ModulationPy/ModulationPy.py +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -352,7 +352,9 @@ def __qam_symbols(self): |
352 | 352 | return s |
353 | 353 |
|
354 | 354 | def __gray_qam_arange(self): |
355 | | - """ Rearanges complex coordinates according to Gray coding requirements. |
| 355 | + """ This method re-arranges complex coordinates according to Gray coding requirements. |
| 356 | + To implement correct Gray mapping the additional heuristic is used: |
| 357 | + the even "columns" in the signal constellation is complex conjugated. |
356 | 358 | """ |
357 | 359 |
|
358 | 360 | for idx, (key, item) in enumerate(self.code_book.items()): |
|
Collapse file
Copy file name to clipboardExpand all lines: README.md +2-6Lines changed: 2 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,13 +96,9 @@ M-QAM modem is available in ```class QAMModem``` with the following parameters: |
96 | 96 | | ```soft_decision``` | ```True``` or ```False``` | Specify whether the output values of ```demodulate()``` method is demodulated as hard or soft decisions. If parametr is ```True``` the output will be Log-likelihood ratios (LLR's), else binary symbols. The default is ```True```.| |
97 | 97 | | ```bin_output``` | ```True``` or ```False```|Specify whether the output of ```demodulate()``` method is bits or integers. The default is ```True```.| |
98 | 98 |
|
99 | | -Now the QAM modulation is designed as in **qammod** Octave function \[4\]. It requires only "even" (in sense, that ```log2(M)``` is even) modulation schemes (4-QAM, 16-QAM, 64-QAM and so on). |
| 99 | +Now the QAM modulation is designed as in **qammod** Octave function \[4\]. It requires only "even" (in sense, that ```log2(M)``` is even) modulation schemes (4-QAM, 16-QAM, 64-QAM and so on - universal and simple). |
| 100 | +Anyway, there are no "odd" modulation schemes in [popular wireless communication standards](https://www.quora.com/What-different-modulation-techniques-are-used-in-1G-2G-3G-4G-and-5G). |
100 | 101 |
|
101 | | -Actually, this fact has its own reasons: |
102 | | -- the modulation algorithm for these modulation schemes is universal and simple; |
103 | | -- there are no "odd" modulation schemes in [popular wireless communication standards](https://www.quora.com/What-different-modulation-techniques-are-used-in-1G-2G-3G-4G-and-5G). |
104 | | - |
105 | | -To implement correct Gray mapping the additional heuristic is used: the even "columns" in the signal constellation is complex conjugated. |
106 | 102 |
|
107 | 103 | ## How to use? |
108 | 104 |
|
|