View source: R/fourier.transform.R
fourier.transform | R Documentation |
timedom
objectComputes the frequency response function of a linear filter and returns it as a freqdom
object.
fourier.transform(A, freq = pi * -100:100/100)
A |
an object of class |
freq |
a vector of frequencies \in [-π, π]. |
Consider a filter (a sequence of vectors or matrices) (A_k)_{k\in A\$lags}. Then this function computes
∑_{k\in A\$lags} A_k e^{-ikω}
for all frequencies ω listed in the vector freq
.
An object of class freqdom
.
fourier.inverse
# We compute the discrete Fourier transform (DFT) of a time series X_1,..., X_T. X = rar(100) T=dim(X)[1] tdX = timedom(X/sqrt(T),lags=1:T) DFT = fourier.transform(tdX, freq= pi*-1000:1000/1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.