Skip to content

Instantly share code, notes, and snippets.

View endrebak's full-sized avatar
🧬
Minor revisions PhD

endrebak.ada endrebak

🧬
Minor revisions PhD
View GitHub Profile
# Author: [email protected]
# License: simplified BSD (3 clause)
# Note: code is based on scipy.stats.pearsonr
def ss(a, axis):
return np.sum(a * a, axis=axis)
def compute_corr(x, y):
x = np.asarray(x)
y = np.asarray(y)