Commits

Davide Cittaro committed 7caed4f

fixed p_value calculation

  • Participants
  • Parent commits 0c61e77

Comments (0)

Files changed (1)

   p_value = distribution.cdf(projection)
   if p_value > 0.5:
     # get the p associated to the tail
-    p_value = 1 - 0.5
+    p_value = 1 - p_value
   return -10 * int(np.round(np.log10(p_value)))