egttools.analytical.utils.check_replicator_stability_pairwise_games

check_replicator_stability_pairwise_games(stationary_points, payoff_matrix, atol_neg=0.0001, atol_pos=0.0001, atol_zero=0.0001)[source]

Calculates the stability of the roots assuming that they are from a system governed by the replicator equation (this function uses the Jacobian of the replicator equation in pairwise games to calculate the stability).

Parameters
  • stationary_points (List[numpy.ndarray]) – a list of stationary points (represented as numpy.ndarray).

  • payoff_matrix (numpy.ndarray) – a payoff matrix represented as a numpy.ndarray.

  • atol_neg (float) – tolerance to consider a value negative.

  • atol_pos (float) – tolerance to consider a value positive.

  • atol_zero (float) – tolerance to determine if a value is zero.

Returns

A list of integers indicating the stability of the stationary points for the replicator equation: 1 - stable -1 - unstable 0 - saddle

Return type

List[int]