Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
Improve SNR on masked fMRI signals.
This function can do several things on the input signals, in the following order:
Lowpass filtering improves specificity.
Highpass filtering should be kept small, to keep some sensitivity.
Filtering is only meaningful on evenlysampled signals.
Parameters:  signals: numpy.ndarray
sessions : numpy array, optional
confounds: numpy.ndarray, str or list of
t_r: float
low_pass, high_pass: float
detrend: bool
standardize: bool


Returns:  cleaned_signals: numpy.ndarray

Notes
Confounds removal is based on a projection on the orthogonal of the signal space. See Friston, K. J., A. P. Holmes, K. J. Worsley, J.P. Poline, C. D. Frith, et R. S. J. Frackowiak. “Statistical Parametric Maps in Functional Imaging: A General Linear Approach”. Human Brain Mapping 2, no 4 (1994): 189210.