pyntbci.utilities.correlation
- pyntbci.utilities.correlation(A: ndarray[Any, dtype[_ScalarType_co]], B: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]
Compute the correlation coefficient. Computed between two sets of variables.
- Parameters:
A (NDArray) – The first set of variables of shape (n_A, n_samples).
B (NDArray) – The second set of variables of shape (n_B, n_samples).
- Returns:
scores – The correlation matrix of shape (n_A, n_B).
- Return type:
NDArray