egttools.plotting.simplified.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 of shape (n,)) – Vector of strategy frequencies in the population.
payoffs (ndarray of shape (n, n)) – 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 of shape (n,)