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

21
papers/formulas/best.py Normal file
View File

@ -0,0 +1,21 @@
def _working_best(temp, prob):
s = .5 # convergence
r = 1.05 # power
u = prob ** r if prob < .5 else prob ** (1/r)
return _weighted(temp, prob, s, u)
def _soft_best(temp, prob):
s = .5 # convergence
r = 1.05 # power
u = prob ** r if prob < .5 else prob ** (1/r)
return _weighted(temp, prob, s, u)
def _parameterized_best(temp, prob):
alpha = 5
beta = 1
s = .5
s = (alpha * prob + beta * s) / (alpha + beta)
r = 1.05
u = prob ** r if prob < .5 else prob ** (1/r)
return _weighted(temp, prob, s, u)