TSrepr (version 1.0.4)

repr_dft: DFT representation by FFT

Description

The repr_dft computes DFT (Discrete Fourier Transform) representation from a time series by FFT (Fast Fourier Transform).

Usage

repr_dft(x, coef = 10)

Arguments

x

the numeric vector (time series)

coef

the number of coefficients to extract from FFT

Value

the numeric vector of DFT coefficients

Details

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

See Also

repr_dwt, repr_dct, fft

Examples

Run this code
# NOT RUN {
repr_dft(rnorm(50), coef = 4)

# }

Run the code above in your browser using DataLab