commpy.channelcoding.conv_encode

conv_encode(message_bits, trellis, code_type='default', puncture_matrix=None)

Encode bits using a convolutional code.

Parameters:
  • message_bits (1D ndarray containing {0, 1}) – Stream of bits to be convolutionally encoded.
  • generator_matrix (2-D ndarray of ints) – Generator matrix G(D) of the convolutional code using which the input bits are to be encoded.
  • M (1D ndarray of ints) – Number of memory elements per input of the convolutional encoder.
Returns:

coded_bits – Encoded bit stream.

Return type:

1D ndarray containing {0, 1}