Skip to content

Commit

Permalink
fix minor bug in Goodall similarity #349 #350
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezazolanvari committed Feb 12, 2023
1 parent bf416c2 commit e8f3e78
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 @@ -1088,7 +1088,7 @@ def Goodall_calc(TP, FP, FN, TN):
try:
n = TP + FP + FN + TN
part1 = math.sqrt((TP + TN) / n)
return 2 / (math.pi * math.sin(part1))
return (2 / math.pi) * math.asin(part1)
except Exception:
return "None"

Expand Down

0 comments on commit e8f3e78

Please sign in to comment.