egttools.analytical.utils.replicator_equation_n_player¶
- replicator_equation_n_player()¶
Compute the replicator dynamics gradient for an N-player game defined by a payoff table.
- Parameters:
frequencies (numpy.ndarray) – One-dimensional array containing the frequency of each strategy.
payoff_matrix (numpy.ndarray) – Two-dimensional payoff table. Rows correspond to strategies and columns to group configurations.
group_size (int) – Number of players interacting simultaneously.
- Returns:
One-dimensional array containing the replicator gradient for each strategy.
- Return type:
See also
egttools.replicator_equation,egttools.games.AbstractReplicatorGameCompute the replicator dynamics gradient for an N-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,egttools.games.AbstractReplicatorGame