Updates paper draft for final chi2 table

This commit is contained in:
LSaldyt
2017-12-09 15:14:53 -07:00
parent 7eb7378ed3
commit a8b9675d2f
7 changed files with 24 additions and 15 deletions

View File

@ -0,0 +1,12 @@
import math
def _original(temp, prob):
if prob == 0 or prob == 0.5 or temp == 0:
return prob
if prob < 0.5:
return 1.0 - _original(temp, 1.0 - prob)
coldness = 100.0 - temp
a = math.sqrt(coldness)
c = (10 - a) / 100
f = (c + 1) * prob
return max(f, 0.5)