Engee documentation

DCT

Discrete Cosine Transform (DCT) of the input signal.

dct

Description

The DCT block calculates the unitary discrete cosine transform (DCT) of the input signal . If the input signal is a matrix of to , the block calculates the DCT transform of each channel in the matrix.

Ports

Input

# IN_1 — input signal
vector | matrix M by N | array

Details

Specify the input signal as a vector, a matrix by or an array.

For all input arrays, the block calculates DCT transformations on the first dimension. The size of the first dimension (frame size) must be equal to a power of two. To work with other frame sizes, use the Pad block to fill or truncate the frame size to a length equal to a degree of two.

If the input to the DCT block is a matrix to , the block treats each input column as an independent channel containing consecutive samples.

Data types

Single | Float64 | Int8 | Int16 | Int32 | Int64 | Uint8 | Uint16 | Uint32 | Uint64

Complex numbers support

Yes

Output

# OUT_1 — output DCT converted signal
vector | matrix M by N | array

Details

Output DCT converted signal as vector, matrix by or array.

If the block outputs a matrix to , the -th column of the matrix contains the length of the corresponding input column.

where

еслиесли
Data types

Single | Float64 | Int8 | Int16 | Int32 | Int64 | Uint8 | Uint16 | Uint32 | Uint64

Complex numbers support

Yes

Parameters

None.