Engee documentation

Random Interleaver

Arranging the input characters using random permutation.

random interleaver

Description

The Random Interleaver block rearranges the elements of the input vector using random permutation. This block accepts the input as a column vector. The Number of elements parameter specifies how many numbers are contained in the input vector.

The block accepts the following data types: Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool. The output signal inherits the data type from the input signal.

The Initial seed parameter initialises the random number generator that the block uses to determine the permutation. The block is predictable at the given parameter value, but different values of this parameter produce different permutations.

Ports

Input

Port_1 - input signal
`vector column

Input signal in the form of a column vector.

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

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.

Parameters

Number of elements - number of elements in the input vector
100 (By default)

Number of elements in the input vector.

Initial seed - initial random value for random number generator
12345 (by default)

Initial random value for the random number generator.

Additional options

C code generation: Yes