Description Usage Arguments Details Value Author(s) Examples
Generates a convolutional encoder for nonrecursive convolutional codes.
1 | ConvGenerateEncoder(N, M, generators)
|
N |
Numer of output symbols per input symbol. |
M |
Memory length of the encoder. |
generators |
Vector of N octal generator polynoms (one for each output symbol). |
N is an integer and gives the number of output bits per input bit. N has to be at least two. M is an integer and gives the memory length of the encoder (number of shift register elements in the circuit). M has to be at least one. M also defines the constraint length which is M+1. The generator polynoms define how the output bits are computed for each of the N output signals. The polynoms are octal numbers. For example given a M = 2 encoder with a generator polynom of 5 for a certain output. Octal 5 means binary 101. The MSB handles the input signal, the LSB handles the output of the last memory element (last shift register element). Therefore octal 5 means the output symbol is computed as the xor combination of the input symbol and the last memory element's output.
A convolutional encoder represented as a list containing: N, M, vector of generator polynoms, 3 matrices: nextState, previousState and output, rsc flag, termination vector
Martin Nocker
1 2 | # standard convolutional encoder with code-rate = 0.5
ConvGenerateEncoder(2,2,c(7,5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.