Atelier des rouesLab FR
Objects/Documentation

medians23.py

Repeating a walk-or-jump decision · medians23.py

Download ↓
"""Five paired repetitions per held-out rank, alternating execution order."""
from math import factorial
from pathlib import Path
from statistics import median
from time import perf_counter_ns
import json,platform
from sauts18 import unrank_fast,unrank,flip_length

def study():
    old=json.loads(Path(__file__).with_name('regle21.json').read_bytes())
    rows=[];period=factorial(9)
    for gap in (21,22,23):
        pairs=[]
        for i,start in enumerate(old['starts']):
            seq=unrank_fast(9,start);target=(start+gap)%period;expected=unrank(9,target)
            times=[]

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.