egttools.games.informal_risk

Functions

calculate_nb_states

Calculates the number of possible states in a discrete simplex.

calculate_state

Converts a discrete population configuration into a unique index.

sample_simplex

Converts a state index into a group composition vector.

Classes

AbstractGame

Base class for all game-theoretic models in EGTtools.

InformalRiskGame

Game of informal risk sharing.