Atelier des rouesLab FR
Objects/Documentation

ordre20.py

I provide the code for this study. The exact cost of an undated alarm

Download ↓
"""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):

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.