ddmra.utils.fast_pearson

fast_pearson(X, y)[source]

Fast correlations between y and each row of X, for QC-RSFC.

Checked for accuracy. From http://qr.ae/TU1B9C

Parameters
  • X ((i, j) numpy.ndarray) – Matrix for which each row is correlated with y.

  • y ((j,) numpy.ndarray) – Array with which to correlate each row of X.

Returns

pearsons ((i,) numpy.ndarray) – Row-wise correlations between X and y.