Skip to content

Reference

tilttek/dice-jail
TypeRole
Jail\WardenJails and releases dice, lists those in jail, gives the history
Jail\InmateA die in jail: its jailing read as a sentence
Jail\JailEventOne line of a die's history
Jail\EventKindJailed or Released
Jail\EvidenceThe statistics shown when a die went to jail
Statistics\GoodnessOfFitPearson's chi-squared test of one die
Statistics\FitResultThe test's statistic, degrees, p-value, verdict, faces and means
Statistics\FaceCountOne face: observed and expected
Statistics\VerdictNotEnoughRolls, NothingUnusual, SomewhatUnusual or VeryUnusual
Statistics\TallyHow many times each face came up
Statistics\ExpectedFacesThe exact probabilities of a fair die
Statistics\ExplanationThe verdict in plain English or French
Statistics\LanguageEnglish or French
Statistics\OriginPhysical or Digital
Statistics\DieAssessorThe test from the rolls a source recorded
Contract\JailStoreWhere the histories are kept
Contract\RollSourceWhere the rolls of a die are read
Store\InMemoryJailStoreThe histories in memory
Store\InMemoryRollSourceThe rolls in memory
Exception\DiceJailExceptionThe interface of every exception of the library
Exception\InvalidRollsRolls or faces the test cannot judge
Exception\InvalidJailEntryA keeper, a die or a reason the jail refuses
Exception\JailRefusedA step the jail does not allow
Exception\JailConflictTwo writers changed a die's history at once

Statistics\ChiSquared is internal: the upper tail of the chi-squared law.