skbio.stats.ordination.corr(x, y=None)[source]¶Computes correlation between columns of x, or x and y.
State: Experimental as of 0.4.0.
Correlation is covariance of (columnwise) standardized matrices, so each matrix is first centered and scaled to have variance one, and then their covariance is computed.
| Parameters: | x : 2D array_like
y : 2D array_like, optional
|
|---|---|
| Returns: | correlation
|