dctMatrix {mrbsizeR}R Documentation

Create a n-by-n discrete cosine transform matrix.

Description

The discrete cosine transform (DCT) matrix for a given dimension n is calculated.

Usage

dctMatrix(n)

Arguments

n

Dimension for the DCT matrix.

Details

The function can be used for 1D- or 2D-DCT transforms of data.

It can be faster to use dctMatrix than using a direct transformation, especially when calculating several DCT's.

Value

The n-by-n DCT matrix.

Examples

D <- dctMatrix(5)

[Package mrbsizeR version 1.3 Index]