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:

numpy.ndarray

See also

egttools.replicator_equation, egttools.games.AbstractReplicatorGame

Compute the replicator dynamics gradient for an N-player game object.

Parameters:
Returns:

One-dimensional array containing the replicator gradient for each strategy.

Return type:

numpy.ndarray

See also

egttools.replicator_equation, egttools.games.AbstractReplicatorGame