egttools.games.opinion_game

Functions

calculate_nb_states

Calculates the number of states (combinations) of the members of a group in a subgroup.

calculate_state

This function converts a vector containing counts into an index.

moment

sample_simplex

Transforms a state index into a vector.

sigmoid

Classes

AbstractNPlayerGame

Abstract N-Player Game.

OpinionGame

Classical Public Goods game with only 2 possible contributions (o or cost).