Objets/Documentation
ordre20.py
Je fournis le code pour cette étude. Le coût exact d’une alarme sans date
Télécharger ↓"""Binary finite experiments. All decisions and stochastic maps use exact fractions."""
from fractions import Fraction as F
from itertools import combinations, accumulate
from math import comb, prod
import json
MAIN=(F(1,5),F(2,5),F(7,10))
CONTROL=(F(1,10),F(1,5),F(3,10))
SIGNS=(1,-3,3,-1,0)
def laws(n,eps,alpha):
# Choose sign-changing brackets from the unperturbed roots.
roots=sorted(1/a for a in alpha)
nodes=[F(1),*( (a+b)/2 for a,b in zip(roots,roots[1:])),2*roots[-1]]
def f(z):