Adds adjustment formulas and embeds them in paper

This commit is contained in:
LSaldyt
2017-11-13 10:49:15 -07:00
parent 7a39d6b00d
commit a3d693d457
5 changed files with 77 additions and 1 deletions

View File

@ -0,0 +1,12 @@
import math
def _entropy(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 -f * math.log2(f)