cascade.utils.pearson_correlation

cascade.utils.pearson_correlation(x)[source]

Compute Pearson correlation matrix

Parameters:

x (Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | spmatrix) – Input matrix

Return type:

ndarray

Returns:

Pearson correlation matrix