Description Usage Arguments Value Author(s) Examples
Produces a convolutional code of a message.
1 2 |
message |
The message to be encoded. |
conv.encoder |
Convolutional encoder used for encoding. |
terminate |
Flag if the code should be terminated. |
punctuation.matrix |
If not null the encoded message is punctured with the punctuation matrix. |
visualize |
If TRUE a beamer PDF file is generated showing the encode process. |
The encoded message with signal values -1,+1 which map to 1,0 respectively.
Martin Nocker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | coder <- ConvGenerateEncoder(2,2,c(7,5))
plain <- c(1,0,0,1,1)
# standard encoding with termination
ConvEncode(plain, coder)
# without termination
ConvEncode(plain, coder, terminate = FALSE)
# with punctuation and visualization
# punctuation <- ConvGetPunctuationMatrix(c(1,1,0,1,1,0), coder)
# ConvEncode(plain, coder, punctuation.matrix = punctuation, visualize = TRUE)
# use default values
ConvEncode(plain)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.