Learn R Programming

TSrepr (version 1.1.1)

repr_dct: DCT representation

Description

The repr_dct computes DCT (Discrete Cosine Transform) representation from a time series.

Usage

repr_dct(x, coef = 10)

Value

the numeric vector of DCT coefficients

Arguments

x

the numeric vector (time series)

coef

the number of coefficients to extract from DCT

Author

Peter Laurinec, <[email protected]>

Details

The length of the final time series representation is equal to set coef parameter.

See Also

repr_dft, repr_dwt, dtt

Examples

Run this code
repr_dct(rnorm(50), coef = 4)

Run the code above in your browser using DataLab