_collections

class coinflip.randtests._collections.FloorDict[source]

Subclassed dict where invalid keys floor to the smallest real key

If a key is accessed that does not exist, the nearest real key that is the less-than of the passed key is used.

class coinflip.randtests._collections.RoundingDict[source]

Subclassed dict where invalid keys are rounded to the nearest real key

If a key is accessed that does not exist, the nearest real key to the passed key is used.

class coinflip.randtests._collections.Bins(intervals: Iterable[int])[source]

Subclassed RoundingDict to initialise intervals as empty bins