Learn R Programming

PEIP (version 2.2-5)

dcost: cosine transform

Description

Computes the column-by-column discrete cosine transform of X.

Usage

dcost(X)

Value

cosine transformaed data

Arguments

X

Time series matrix

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

Run this code

 x <- 1:4

### compare fft with cosine transform
     fft(x)
    
dcost(x)

Run the code above in your browser using DataLab