CelLink
  • Installation
  • Tutorials
  • API documentation
CelLink
  • API documentation
  • CelLink.utils
  • CelLink.utils.cdist_correlation
  • View page source

CelLink.utils.cdist_correlation

CelLink.utils.cdist_correlation(arr1, arr2)[source]

Calculate pair-wise 1 - Pearson correlation between X and Y.

Parameters:
  • arr1 (np.array of shape (n_samples1, n_features)) – First dataset.

  • arr2 (np.array of shape (n_samples2, n_features)) – Second dataset.

Returns:

array-like of shape (n_samples1, n_samples2) – The (i, j)-th entry is 1 - Pearson correlation between i-th row of arr1 and j-th row of arr2.

Previous Next

© Copyright Xin Luo.

Built with Sphinx using a theme provided by Read the Docs.