egttools.analytical.replicator_equation¶
- replicator_equation()¶
Compute the replicator dynamics gradient for a two-player matrix game.
- Parameters:
frequencies (numpy.ndarray) – One-dimensional array containing the frequency of each strategy.
payoff_matrix (numpy.ndarray) – Two-dimensional payoff matrix.
- Returns:
One-dimensional array containing the replicator gradient for each strategy.
- Return type:
See also
egttools.replicator_equation_n_player,egttools.games.AbstractReplicatorGameCompute the replicator dynamics gradient for a two-player game object.
- Parameters:
frequencies (numpy.ndarray) – One-dimensional array containing the frequency of each strategy.
game (egttools.games.AbstractReplicatorGame) – Game object used to compute expected fitness values.
- Returns:
One-dimensional array containing the replicator gradient for each strategy.
- Return type:
See also
egttools.replicator_equation_n_player,egttools.games.AbstractReplicatorGame