Removes low-frequency components using discrete cosine transform.
Details
DCT detrending is commonly used in fMRI preprocessing. The number of basis functions controls the high-pass filter cutoff:
n_basis = 1: mean removal only
n_basis = 2: ~ linear detrend
n_basis = 4-6: typical for fMRI (removes drift < ~0.01 Hz for TR=2s)
Higher n_basis = more aggressive high-pass filtering.