heterogeneous_contribution_pgg_fitness_function
ludics.fitness_functions.heterogeneous_contribution_pgg_fitness_function(state, r, contribution_vector, **kwargs)
Calculates each player's payoff in a public goods game with heterogeneous contributions in a given state
Parameters:
state: numpy.array - the state of each player's action typer: float - the ratio by which the contributions are multipliedcontribution_vector: numpy.array - the amount that each player contributes
Returns:
- numpy.array: each player's fitness in the state when playing a public goods game with heterogeneous contributions