Atelier des rouesLab FR
Objects/Documentation

paires22.py

Reconstruction under three laws · paires22.py

Download ↓
"""Exploratory signed-pair bound survey. Seed and draw order are fixed."""
import json
from random import Random
from fractions import Fraction as F
from cellules22 import bern,experiment,preserving,pair_bound,certificate


def study():
    rng=Random(2233);rows=[]
    for m in (2,3,4):
        def masses():
            cuts=sorted(rng.sample(range(1,17),m-1))
            return [F(j-i,17) for i,j in zip([0]+cuts,cuts+[17])]
        lp=fail=0;first=None
        for _ in range(4000):
            a,b=masses(),masses()

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.