get_coeffs(data, X, mask=None, add_const=False)[source]

Performs least-squares fit of X against data

  • data ((S [x E] x T) array_like) – Array where S is samples, E is echoes, and T is time

  • X ((T [x C]) array_like) – Array where T is time and C is predictor variables

  • mask ((S [x E]) array_like) – Boolean mask array

  • add_const (bool, optional) – Add intercept column to X before fitting. Default: False


betas ((S [x E] x C) numpy.ndarray) – Array of S sample betas for C predictors