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)

Example output

Loading required package: maps

mrbsizeR documentation built on April 1, 2020, 5:08 p.m.