Helper functions for constructing design regressors
DCT II basis up to order order
See: https://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II
By default, basis not normalized to length 1, and therefore, basis is not orthogonal. Normalize basis with normcols keyword argument.
Parameters: | volume_times : array-like
order : None or int, optional
normcols : bool, optional
|
---|---|
Returns: | dct_basis : array
|
Raises: | ValueError :
|
DCT-II regressors with periods >= cut_period
See: http://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II
Parameters: | volume_times : array-like
cut_period: float :
|
---|---|
Returns: | cdrift: array shape (n_scans, n_drifts) :
|