Engee documentation

General Block Interleaver

Rearrangement of symbols in the input vector.

general block interleaver

Description

The General Block Interleaver rearranges the elements of the input vector without repeating or skipping any elements. If the input vector contains elements, the Permutation vector parameter is a column vector of length . The column vector indicates the index order of the input elements that form the output vector of length , i.e.

Output ( ) = Input (Permutation vector( ))

for each integer between 1 and . The Permutation vector parameter must consist of integers from 1 to with no repetitions.

The input data and the Permutation vector parameter must be column vectors.

Example

If the Permutation vector parameter has the value [4,1,3,2] and the input vector is [40,32,59,1], then the output vector will have the value [1,40,59,32]. Note that all these vectors are of the same length and the Permutation vector contains integer values from 1 to 4.

Ports

Input

u - input signal
`vector column

Input signal as a column vector of length .

Data types: Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool, Fixed.

k - vector of permutations
vector-column of integers

Vector-column of length , which lists the indices of output elements obtained from the input vector.

Dependencies

To use this port, set the Permutation vector source parameter to Input port.

Output

Port_1 - output signal
`vector column

Output signal in the form of a column vector. The output signal inherits its data type from the input signal.

Data types: Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool, Fixed.

Parameters

Permutation vector source - the source of the permutation vector
Dialog (by default) | Input port

Defines the source of the permutation vector:

  • Dialog - the permutation vector is specified by the Permutation vector parameter.

  • Input port - the permutation vector is set through the k port.

Permutation vector - permutation vector
[5,4,3,2,1] (by default) | ` vector-column of integers`

Vector-column of length , which lists the indices of output elements obtained from the input vector.

Dependencies

To use this port, set the Permutation vector source parameter to Dialog.