egttools.games.informal_risk.calculate_nb_states¶
- calculate_nb_states()¶
Calculate the number of possible states in a discrete simplex.
This is the number of integer compositions of group_size individuals into nb_strategies categories.
- Parameters:
- Returns:
Number of possible discrete states.
- Return type:
Examples
>>> calculate_nb_states(4, 3) 15 >>> calculate_nb_states(10, 2) 11