egttools.analytical.utils.replicator_equation

replicator_equation(x, payoffs)[source]

Produces the discrete time derivative of the replicator dynamics

This only works for 2-player games.

Parameters
  • x (numpy.ndarray[numpy.float64[m,1]]) – array containing the frequency of each strategy in the population.

  • payoffs (numpy.ndarray[numpy.float64[m,m]]) – payoff matrix

Returns

time derivative of x

Return type

numpy.ndarray