summaryrefslogtreecommitdiff
path: root/gr-fec/python
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/python')
-rw-r--r--gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py2
-rw-r--r--gr-fec/python/fec/polar/channel_construction_bec.py2
-rw-r--r--gr-fec/python/fec/polar/helper_functions.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
index c42fee631f..589595bbd5 100644
--- a/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
+++ b/gr-fec/python/fec/LDPC/Generate_LDPC_matrix_functions.py
@@ -55,7 +55,7 @@ def read_alist_file(filename):
def write_alist_file(filename, H, verbose=0):
"""
This function writes an alist file for the parity check
- matrix. The format of alist files is desribed at:
+ matrix. The format of alist files is described at:
http://www.inference.phy.cam.ac.uk/mackay/codes/alist.html
"""
diff --git a/gr-fec/python/fec/polar/channel_construction_bec.py b/gr-fec/python/fec/polar/channel_construction_bec.py
index 4b35602d96..acad720036 100644
--- a/gr-fec/python/fec/polar/channel_construction_bec.py
+++ b/gr-fec/python/fec/polar/channel_construction_bec.py
@@ -27,7 +27,7 @@ def bec_channel(eta):
binary erasure channel (BEC)
for each y e Y
W(y|0) * W(y|1) = 0 or W(y|0) = W(y|1)
- transistions are 1 -> 1 or 0 -> 0 or {0, 1} -> ? (erased symbol)
+ transitions are 1 -> 1 or 0 -> 0 or {0, 1} -> ? (erased symbol)
'''
# looks like BSC but should be interpreted differently.
w = np.array((1 - eta, eta, 1 - eta), dtype=float)
diff --git a/gr-fec/python/fec/polar/helper_functions.py b/gr-fec/python/fec/polar/helper_functions.py
index 85140c856f..a4ecb1f0ff 100644
--- a/gr-fec/python/fec/polar/helper_functions.py
+++ b/gr-fec/python/fec/polar/helper_functions.py
@@ -30,7 +30,7 @@ def bsc_channel(p):
W(0|0) = W(1|1) and W(1|0) = W(0|1)
this function returns a prob's vector for a BSC
- p denotes an erroneous transistion
+ p denotes an erroneous transition
'''
if not (p >= 0.0 and p <= 1.0):
print "given p is out of range!"