egttools.distributions.TimingUncertainty¶
- class TimingUncertainty¶
Bases:
pybind11_objectTiming uncertainty distribution container.
This class provides methods to sample the final round of a game. By default, the timing uncertainty follows a geometric distribution.
- Parameters:
Examples
>>> from egttools.numerical.distributions import TimingUncertainty >>> tu = TimingUncertainty(0.2, 20)
Methods
Sample the final round, truncated by max_rounds.
Sample the final round without truncation.
Attributes
Maximum allowed number of rounds.
Probability that the game ends after the minimum number of rounds.
- __init__()¶
- __new__(**kwargs)¶
- calculate_end()¶
Sample the final round, truncated by max_rounds.
The returned round lies in the interval [min_rounds, max_rounds] when max_rounds > 0.
- calculate_full_end()¶
Sample the final round without truncation.
The returned round is at least min_rounds.
- __annotations__ = {}¶
- property max_rounds¶
Maximum allowed number of rounds. A value of 0 means no maximum.
- property p¶
Probability that the game ends after the minimum number of rounds.