Fix syllable abbreviation for pentanomial (#224)
This commit is contained in:
1 parent
79ff328a4e
commit
e2673c3cd1
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -60,7 +60,7 @@ def PentanomialSPRT(results, elo0, elo1):
|
|||||||
nt0, nt1 = (x / nelo_divided_by_nt for x in (elo0, elo1))
|
nt0, nt1 = (x / nelo_divided_by_nt for x in (elo0, elo1))
|
||||||
t0, t1 = nt0 * math.sqrt(2), nt1 * math.sqrt(2)
|
t0, t1 = nt0 * math.sqrt(2), nt1 * math.sqrt(2)
|
||||||
|
|
||||||
# Number of game-pairs, and the PDF of Pntml(0-2) expressed as (0-1)
|
# Number of game-pairs, and the PDF of Ptnml(0-2) expressed as (0-1)
|
||||||
N = sum(results)
|
N = sum(results)
|
||||||
pdf = [(i / 4, results[i] / N) for i in range(0, 5)]
|
pdf = [(i / 4, results[i] / N) for i in range(0, 5)]
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ def gitDiffLink(test):
|
|||||||
def shortStatBlock(test):
|
def shortStatBlock(test):
|
||||||
|
|
||||||
tri_line = 'Games: %d W: %d L: %d D: %d' % test.as_nwld()
|
tri_line = 'Games: %d W: %d L: %d D: %d' % test.as_nwld()
|
||||||
penta_line = 'Pntml(0-2): %d, %d, %d, %d, %d' % test.as_penta()
|
penta_line = 'Ptnml(0-2): %d, %d, %d, %d, %d' % test.as_penta()
|
||||||
|
|
||||||
if test.test_mode == 'SPSA':
|
if test.test_mode == 'SPSA':
|
||||||
statlines = [
|
statlines = [
|
||||||
@@ -394,4 +394,4 @@ def next(iterable, index):
|
|||||||
@register.filter
|
@register.filter
|
||||||
def previous(iterable, index):
|
def previous(iterable, index):
|
||||||
try: return iterable[int(index) - 1]
|
try: return iterable[int(index) - 1]
|
||||||
except: return None
|
except: return None
|
||||||
Reference in new issue
Block a user