ConvGetPunctuationMatrix: Get punctuation matrix from vector.

Description Usage Arguments Value Author(s) Examples

Description

Creates a punctuation matrix from the passed punctuation vector and the passed coder. Important: punctuation vector has to contain k*N elements, where N is the amount of coder outputs and k a natural number ≥ 1.

Usage

1
ConvGetPunctuationMatrix(punctuation.vector, conv.coder)

Arguments

punctuation.vector

Vector containing the punctuation information which will be transformed to a punctuation matrix.

conv.coder

Convolutional coder which is used for the matrix dimensions.

Value

Punctuation matrix suitable for ConvEncode, ConvDecodeSoft, ConvDecodeHard and ConvSimulation.

Author(s)

Martin Nocker

Examples

1
2
3
4
# coder with 2 outputs, vector has to have k*2 elements
coder <- ConvGenerateEncoder(2,2,c(7,5))
punctuation.vector <- c(1,1,0,1,1,0)
punctuation.matrix <- ConvGetPunctuationMatrix(punctuation.vector, coder)

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