Objects/Documentation
localiser12.py
I provide this item to inspect or reproduce the check AT.V8.
Download ↓"""Exact grouped laws, compressed likelihood and a finite wheel-to-product bound."""
from fractions import Fraction as F
from collections import Counter
from itertools import product
from math import prod,comb,exp,factorial
import json
def tv(a,b):
return sum(abs(a.get(x,0)-b.get(x,0)) for x in a.keys()|b.keys())/2
def push(law,key):
out=Counter()
for x,v in law.items():out[key(x)]+=v
return out
def grouped(sizes,eps,q):