ConvEncode: Convolutional encoding of a message.

Description Usage Arguments Value Author(s) Examples

Description

Produces a convolutional code of a message.

Usage

1
2
ConvEncode(message, conv.encoder = NULL, terminate = TRUE,
  punctuation.matrix = NULL, visualize = FALSE)

Arguments

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.

Value

The encoded message with signal values -1,+1 which map to 1,0 respectively.

Author(s)

Martin Nocker

Examples

 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)

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