Atelier des rouesLab FR
Objects/Documentation

histoires.py

I provide the computation for “What a final observation discards”.

Download ↓
"""Exact labelled survival histories on two CRT wheels versus independent sites."""
from collections import Counter
from fractions import Fraction as F
from itertools import product
import json


def distance(a,b):
    return sum(abs(a[k]-b[k]) for k in set(a)|set(b))/2


def history(sites):
    crt=Counter()
    independent=Counter()
    for a,b in product(range(3),range(5)):
        first=tuple(x%3!=a for x in sites)

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.