scglue.num.pcc_mat
- scglue.num.pcc_mat(X, Y=None)[源代码]
Pearson’s correlation coefficient (sparse friendly)
- 参数
X (
typing.Union
[numpy.ndarray
,scipy.sparse._base.spmatrix
]) – First design matrixY (
typing.Union
[numpy.ndarray
,scipy.sparse._base.spmatrix
,None
]) – Second design matrix (optional)
- 返回类型
- 返回
pcc – Pearson’s correlation matrix among columns of X, if only X is given. Pearson’s correlation matrix between columns of X and columns of Y, if both X and Y are given.