Skip to content

Commit 2373473

Browse files
committed
Add 'Matlab' argument to Treillis
1 parent dbed95d commit 2373473

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commpy/channelcoding/convcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Trellis:
3333
Number of memory elements per input of the convolutional encoder.
3434
g_matrix : 2D ndarray of ints (decimal representation)
3535
Generator matrix G(D) of the convolutional encoder. Each element of
36-
G(D) represents a polynomial with a MSB first decimal convention (ie, 1+D^2+D^3 <-> 1101 <-> 13 or 0o15).
36+
G(D) represents a polynomial with a MSB first convention (ie, 1+D^2+D^3 <-> 1101 <-> 13 or 0o15).
3737
Coef [i,j] is the influence of input i on output j.
3838
feedback : 2D ndarray of ints (decimal representation), optional
3939
Feedback matrix F(D) of the convolutional encoder. Each element of
@@ -48,9 +48,9 @@ class Trellis:
4848
G(D) must represent a identity matrix along with a non-zero
4949
feedback polynomial.
5050
*Default* is 'default'.
51-
polynomial_format : {'MSB', 'LSB'}, optional
51+
polynomial_format : {'MSB', 'LSB', 'Matlab'}, optional
5252
Defines how to interpret g_matrix and feedback. In MSB format, we have 1+D <-> 3 <-> 011.
53-
In LSB format, we have 1+D <-> 6 <-> 110.
53+
In LSB format, which is used in Matlab, we have 1+D <-> 6 <-> 110.
5454
*Default* is 'MSB' format.
5555
5656
Attributes

0 commit comments

Comments
 (0)