Learn R Programming

tidynorm (version 0.4.0)

dct_basis: DCT Basis

Description

The Discrete Cosine Transform basis functions

Usage

dct_basis(n, k)

Value

A \(n\times k\) matrix

Arguments

n

The length of the basis.

k

The number of basis functions.

Details

This function will generate the DCT basis functions.

Examples

Run this code
basis <- dct_basis(100, 5)
matplot(basis, type = "l", lty = 1)

Run the code above in your browser using DataLab