egttools.behaviors.NormalForm.TwoActions.ActionInertia¶
- class ActionInertia(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ActionInertia, epsilon: SupportsFloat | SupportsIndex, p: SupportsFloat | SupportsIndex)¶
Bases:
AbstractNFGStrategyStrategy that tends to repeat its previous action.
Construct an ActionInertia strategy.
The strategy repeats its current action, but explores a different action with probability epsilon. In the first round it cooperates with probability p.
- Parameters:
Methods
Return the action chosen by the strategy.
Return whether the strategy is stochastic.
Return the strategy type.
- __init__(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ActionInertia, epsilon: SupportsFloat | SupportsIndex, p: SupportsFloat | SupportsIndex) None¶
Construct an ActionInertia strategy.
The strategy repeats its current action, but explores a different action with probability epsilon. In the first round it cooperates with probability p.
- __new__(**kwargs)¶
- get_action(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ActionInertia, time_step: SupportsInt | SupportsIndex, action_prev: SupportsInt | SupportsIndex) int¶
Return the action chosen by the strategy.
- is_stochastic(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ActionInertia) bool¶
Return whether the strategy is stochastic.
- type(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ActionInertia) str¶
Return the strategy type.
- __annotations__ = {}¶