egttools.analytical.sed_analytical.replicator_equation

replicator_equation(x, payoffs)[source]

Compute the time derivative of the replicator dynamics for 2-player games.

This function implements the standard replicator equation for continuous-time dynamics in infinite populations under 2-player payoff structures.

Parameters:
  • x (NDArray[double]) – Vector of strategy frequencies in the population.

  • payoffs (NDArray[double]) – Payoff matrix where entry [i, j] indicates the payoff of strategy i against j.

Returns:

Time derivative of the frequency vector under replicator dynamics.

Return type:

NDArray[double]