Atelier des rouesLab FR
Objects/Documentation

stabilite.py

Reproducible program or output for the calibrage dossier.

Download ↓
"""Exact lower bound for the oscillation of strict-prefix variance."""
from fractions import Fraction as F
from itertools import product
from math import prod
import json

from dispersion import auto, orbit, subsets


def deviation(p, a):
    correlations = auto(p, a)[1:]
    average = F(sum(correlations), p-1)
    return max(abs(x-average) for x in correlations)


def coefficient(p, local):

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.