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

Description Usage Arguments Details Value Examples

View source: R/RcppExports.R

Description

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

Usage

1

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

1
D <- dctMatrix(5)

romanflury/mrbsizeR documentation built on Dec. 15, 2019, 9:30 p.m.