Skip to content

Commit

Permalink
fix minor bug in Hurlbert correlation #349 #350
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezazolanvari committed Feb 12, 2023
1 parent e8f3e78 commit c78dcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycm/pycm_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ def Hurlbert_calc(TP, FP, FN, TN):
a_hat = ((TP + FP) * (TP + FN)) / n
if (TP * TN) >= (FP * FN):
g = math.ceil(a_hat)
MaxX2 = ((TP + FP) * (FP * TN) * n) / ((TP + FN) * (FN + TN))
MaxX2 = ((TP + FP) * (FP + TN) * n) / ((TP + FN) * (FN + TN))
else:
g = math.floor(a_hat)
if TP <= TN:
Expand Down

0 comments on commit c78dcfb

Please sign in to comment.