egttools.distributions.TimingUncertainty

class TimingUncertainty(self: egttools.numerical.numerical.distributions.TimingUncertainty, p: float, max_rounds: int = 0)

Bases: pybind11_object

Timing uncertainty distribution container.

This class provides methods to calculate the final round of the game according to some predifined distribution, which is geometric by default.

Parameters
  • p (float) – Probability that the game will end after the minimum number of rounds.

  • max_rounds (int) – maximum number of rounds that the game can take (if 0, there is no maximum).

Methods

calculate_end

Calculates the final round limiting by max_rounds, i.e., outputs a value between[min_rounds, max_rounds].

calculate_full_end

Calculates the final round, i.e., outputs a value between[min_rounds, Inf].

Attributes

max_rounds

p

__init__(self: egttools.numerical.numerical.distributions.TimingUncertainty, p: float, max_rounds: int = 0) None

Timing uncertainty distribution container.

This class provides methods to calculate the final round of the game according to some predifined distribution, which is geometric by default.

Parameters
  • p (float) – Probability that the game will end after the minimum number of rounds.

  • max_rounds (int) – maximum number of rounds that the game can take (if 0, there is no maximum).

__new__(**kwargs)
calculate_end(self: egttools.numerical.numerical.distributions.TimingUncertainty, min_rounds: int, random_generator: std::mersenne_twister_engine<unsigned long, 64ul, 312ul, 156ul, 31ul, 13043109905998158313ul, 29ul, 6148914691236517205ul, 17ul, 8202884508482404352ul, 37ul, 18444473444759240704ul, 43ul, 6364136223846793005ul>) int

Calculates the final round limiting by max_rounds, i.e., outputs a value between[min_rounds, max_rounds].

calculate_full_end(self: egttools.numerical.numerical.distributions.TimingUncertainty, min_rounds: int, random_generator: std::mersenne_twister_engine<unsigned long, 64ul, 312ul, 156ul, 31ul, 13043109905998158313ul, 29ul, 6148914691236517205ul, 17ul, 8202884508482404352ul, 37ul, 18444473444759240704ul, 43ul, 6364136223846793005ul>) int

Calculates the final round, i.e., outputs a value between[min_rounds, Inf].

property max_rounds
property p