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:

numpy.ndarray

See also

egttools.replicator_equation_n_player, egttools.games.AbstractReplicatorGame

Compute the replicator dynamics gradient for a two-player game object.

Parameters:
Returns:

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

Return type:

numpy.ndarray

See also

egttools.replicator_equation_n_player, egttools.games.AbstractReplicatorGame