Description Usage Arguments Value Author(s) Examples
Decodes a block codeword.
1 | BlockDecode(code, block.encoder = NULL, visualize = FALSE)
|
code |
The code to be decoded. |
block.encoder |
Block encoder used for encoding. |
visualize |
If TRUE a beamer PDF file is generated showing the decode process. |
The decoded message as binary Vector
Benedikt Wimmer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | coder <- BlockGenerateEncoderBCH(15,3)
plain <- c(1,0,0,1,1)
# standard encoding and decoding
coded <- BlockEncode(plain, coder)
BlockDecode(coded, coder)
# with visualization
# coded <- BlockEncode(plain, coder)
# BlockDecode(coded, coder, visualize = TRUE)
# with message distortion
coded <- BlockEncode(plain, coder)
noisy <- ApplyNoise(coded, SNR.db = 3, binary = TRUE)
BlockDecode(noisy, coder)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.