Skip to content

Reference

tilttek/dice-probability
TypeRole
ProbabilitiesThe entry point: distribution(), compare() and chance()
SettingsThe explosion depth, the work limit, the samples, the seed and the roll limit of an estimate
DistributionEvery value of an expression and its weight; probabilities, at least, at most, mean, variance, standard deviation
OutcomeOne value of a distribution with its probability, at least and at most
VersusTwo distributions against each other: the first higher, a tie, the second higher
ChanceThe probability of an event
EstimateHow an estimated result was drawn, and its margin
EstimateReasonTooLarge or Unsupported
Exact\NaturalA natural number of any size
Exact\FractionAn exact rational number
Event\EventWhat the faces of a set show or not
Event\FacesThe faces of a set, counted by value
Event\CountHow many dice show a face, compared with a number
Event\OfAKindA double, a triple, or more dice of a kind
Event\StraightConsecutive values
Event\AllEqual, Event\AllDifferent, Event\AllMatchEvery die the same, all different, or all matching
Event\AnyOf, Event\AllOf, Event\NotEvents composed
Exception\ProbabilityExceptionThe interface of the library's exceptions
Exception\CannotComputeNo distribution or probability can be given

The classes of Computation\ — the calculator, its weights, its budget, the multisets and the sampler — are internal.