View source: R/DCT_FFT_detrending.R
temporal_filter | R Documentation |
Temporal filtering (bandpass, highpass, lowpass) with DCT or FFT
temporal_filter(
X,
TR,
hpf = 0.008,
lpf = NULL,
method = c("DCT", "FFT"),
verbose = FALSE
)
detrend(X, TR, hpf = 0.008, method = c("DCT", "FFT"))
X |
A numeric matrix, with each column being a timeseries to filter
For fMRI data, Alternatively, a single integer giving the number of timepoints in data.
The return value will be the suitable set of DCT bases. Only works with
|
TR |
The time step between adjacent rows of |
hpf |
The frequency of the highpass filter, in Hertz. Default: |
lpf |
The frequency of the lowpass filter, in Hertz. Default: |
method |
|
verbose |
Print messages? Default: |
Filtered X
, or if X
was an integer, the set of DCT
bases to use for nuisance regression (not including an intercept).
temporal_filter(matrix(rnorm(700), nrow=100), TR=.72)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.