eigenstrapping.stats.pairwise_r
- eigenstrapping.stats.pairwise_r(X, flatten=False, nan_policy='omit')[source]
Compute pairwise Pearson correlations between rows of X.
- Parameters:
X ((N,M) np.ndarray)
flatten (bool, default False) – If True, return flattened upper triangular elements of corr. matrix
- Returns:
Pearson correlation coefficients
- Return type:
(N*(N-1)/2,) or (N,N) np.ndarray