Objects/Documentation
deficience21.py
I provide the code for this study. The exact cost of an undated alarm
Download ↓"""Finite minimax TV deficiency. Fractions verify a kernel and a dual lower bound."""
from fractions import Fraction as F
from itertools import product
from math import prod
import json
from ordre20 import laws, MAIN
def tv(p,q):
return sum(abs(a-b) for a,b in zip(p,q))/2
def push(law,k):
return [sum(a*v for a,v in zip(law,col)) for col in zip(*k)]