Skip to content

Commit

Permalink
Adding example
Browse files Browse the repository at this point in the history
  • Loading branch information
chicodelarosa committed Apr 11, 2022
1 parent 825d5a7 commit 38ff55e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/readme.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import numpy as np
from relationships import associations

v1, v2 = np.array([1, 1, 2]), np.array([1, 1, 2])

matth_corr = associations.matthews_corr(v1, v2)
print(matth_corr) # 1.0

v1, v2 = np.array([1, 1, 2]), np.array([2, 1, 2])

matth_corr = associations.matthews_corr(v1, v2)
print(matth_corr) # 0.5

0 comments on commit 38ff55e

Please sign in to comment.