BlockDecode: Block decoding of a code.

Description Usage Arguments Value Author(s) Examples

Description

Decodes a block codeword.

Usage

1
BlockDecode(code, block.encoder = NULL, visualize = FALSE)

Arguments

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.

Value

The decoded message as binary Vector

Author(s)

Benedikt Wimmer

Examples

 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)

DaniWi/Channelcoding documentation built on May 6, 2019, 1:23 p.m.