egttools.utils.get_payoff_function

get_payoff_function(strategy_i, strategy_j, nb_strategies, game)[source]

Returns a function which gives the payoff of strategy i against strategy j.

The returned function will return the payoff of strategy i given k individuals of strategy i and group_size - k j strategists.

Parameters
Returns

A function which will return the payoff of strategy i, given k individuals of strategy i and group_size - k j strategists.

Return type

Callable[[int, int, Optional[List]], float]