Objets/Documentation
paires22.py
Reconstruction sous trois lois · paires22.py
Télécharger ↓"""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()