Skip to content

Commit 2a99636

Browse files
authored
Update convcode.py
1 parent 67c5ba5 commit 2a99636

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

commpy/channelcoding/convcode.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Trellis:
2222
Number of memory elements per input of the convolutional encoder.
2323
g_matrix : 2D ndarray of ints (octal representation)
2424
Generator matrix G(D) of the convolutional encoder. Each element of
25-
G(D) represents a polynomial.
25+
G(D) represents a polynomial.
2626
feedback : int, optional
2727
Feedback polynomial of the convolutional encoder. Default value is 00.
2828
code_type : {'default', 'rsc'}, optional
@@ -266,20 +266,15 @@ def visualize(self, trellis_length = 2, state_order = None,
266266
def conv_encode(message_bits, trellis, termination = 'cont', puncture_matrix=None):
267267
"""
268268
Encode bits using a convolutional code.
269-
270269
Parameters
271270
----------
272271
message_bits : 1D ndarray containing {0, 1}
273272
Stream of bits to be convolutionally encoded.
274-
275273
trellis: pre-initialized Trellis structure.
276-
277274
termination: {'cont', 'term'}, optional
278275
Create ('term') or not ('cont') termination bits.
279-
280276
puncture_matrix: 2D ndarray containing {0, 1}, optional
281277
Matrix used for the puncturing algorithm
282-
283278
Returns
284279
-------
285280
coded_bits : 1D ndarray containing {0, 1}

0 commit comments

Comments
 (0)