Atelier des rouesLab FR
Objects/Documentation

decision15.py

I provide this item for reproducing the counts, decisions and checks.

Download ↓
"""A finite decision rule valid for both admissible twin counts; independent mass reader."""
from collections import defaultdict
from fractions import Fraction
from pathlib import Path
import json

from compteurs15 import interval

HERE = Path(__file__).resolve().parent


def read(raw, keep_time):
    probabilities = defaultdict(Fraction)
    for label, numerator in raw['lower_numerators'].items():
        a,b,c,d = map(int,label.split(','))
        observation = (a,b,c,d) if keep_time else (a+c,b+d)

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.