Learn R Programming

PEIP (version 2.0-1)

dcost: cosine transform

Description

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

Usage

dcost(X)

Arguments

X

Time series matrix

Value

cosine transformaed data

Examples

Run this code
# NOT RUN {
 x <- 1:4

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

# }

Run the code above in your browser using DataLab